mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-04 07:10:06 +08:00
fix(specs): Wait longer in DraftStore specs for window close
This commit is contained in:
parent
fb18299bc2
commit
8bf4b325d3
1 changed files with 2 additions and 0 deletions
|
@ -258,6 +258,7 @@ describe('DraftStore', function draftStore() {
|
||||||
expect(callback).not.toHaveBeenCalled();
|
expect(callback).not.toHaveBeenCalled();
|
||||||
this.resolve();
|
this.resolve();
|
||||||
advanceClock(1000);
|
advanceClock(1000);
|
||||||
|
advanceClock(1000);
|
||||||
expect(callback).toHaveBeenCalled();
|
expect(callback).toHaveBeenCalled();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -280,6 +281,7 @@ describe('DraftStore', function draftStore() {
|
||||||
expect(DraftStore._onBeforeUnload(callback)).toBe(false);
|
expect(DraftStore._onBeforeUnload(callback)).toBe(false);
|
||||||
expect(callback).not.toHaveBeenCalled();
|
expect(callback).not.toHaveBeenCalled();
|
||||||
advanceClock();
|
advanceClock();
|
||||||
|
advanceClock(1000);
|
||||||
expect(callback).toHaveBeenCalled();
|
expect(callback).toHaveBeenCalled();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue