1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-29 22:48:10 +02:00

Chore: Complete Jest upgrade

This commit is contained in:
Laurent Cozic
2022-11-15 10:23:50 +00:00
parent 33b96b4c65
commit 64199704c2
90 changed files with 118 additions and 346 deletions

View File

@@ -145,7 +145,7 @@ let previousSyncTargetName: string = '';
describe('MigrationHandler', function() {
beforeEach(async (done: Function) => {
beforeEach(async () => {
// Note that, for undocumented reasons, the timeout argument passed
// to `test()` (or `it()`) is ignored if it is higher than the
// global Jest timeout. So we need to set it globally.
@@ -163,12 +163,10 @@ describe('MigrationHandler', function() {
await setupDatabaseAndSynchronizer(1);
await setupDatabaseAndSynchronizer(2);
await switchClient(1);
done();
});
afterEach(async (done: Function) => {
afterEach(async () => {
setSyncTargetName(previousSyncTargetName);
done();
});
it('should init a new sync target', (async () => {