Skip to content

Commit bcac11c

Browse files
committed
tests: fix test for mw.user
CI now uses a BotPassword with almost no permissions
1 parent 5d30b51 commit bcac11c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/jest.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ describe('test with jest', function () {
9292

9393
test('user', async () => {
9494
let rights = await mw.user.getRights();
95-
expect(rights.length).toBeGreaterThan(10);
95+
expect(rights.length).toBeGreaterThan(6);
9696
});
9797

9898
});

tests/mocha.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ describe('test using bundled with-jsdom and mocha', function () {
9797
it('user', async function () {
9898
this.timeout(5000);
9999
let rights = await mw.user.getRights();
100-
assert(rights.length > 10);
100+
assert(rights.length > 6);
101101
});
102102

103103
});

0 commit comments

Comments
 (0)