fix(specs): Wait longer in DraftStore specs for window close

This commit is contained in:
Ben Gotow 2016-07-28 11:20:02 -07:00
parent fb18299bc2
commit 8bf4b325d3

View file

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