mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-30 10:36:35 +02:00
Tools: Fixed tests
This commit is contained in:
parent
bbae1aef28
commit
0e4c545e14
@ -112,7 +112,11 @@ describe('index_users', function() {
|
||||
const beforeUserCount = (await userModel.all()).length;
|
||||
expect(beforeUserCount).toBe(2);
|
||||
|
||||
await postUser(session.id, 'test@example.com', '123456');
|
||||
try {
|
||||
await postUser(session.id, 'test@example.com', '123456');
|
||||
} catch {
|
||||
// Ignore
|
||||
}
|
||||
|
||||
const afterUserCount = (await userModel.all()).length;
|
||||
expect(beforeUserCount).toBe(afterUserCount);
|
||||
|
Loading…
Reference in New Issue
Block a user