mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-30 20:07:48 +08:00
fix(specs): Wait longer in DraftStore specs for window close
This commit is contained in:
parent
947646fed8
commit
0723457f27
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