mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-01 13:14:16 +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();
|
||||
this.resolve();
|
||||
advanceClock(1000);
|
||||
advanceClock(1000);
|
||||
expect(callback).toHaveBeenCalled();
|
||||
});
|
||||
});
|
||||
|
@ -280,6 +281,7 @@ describe('DraftStore', function draftStore() {
|
|||
expect(DraftStore._onBeforeUnload(callback)).toBe(false);
|
||||
expect(callback).not.toHaveBeenCalled();
|
||||
advanceClock();
|
||||
advanceClock(1000);
|
||||
expect(callback).toHaveBeenCalled();
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue