1
0
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:
Laurent Cozic 2021-06-10 10:57:45 +02:00
parent bbae1aef28
commit 0e4c545e14

View File

@ -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);