From 0723457f27b80ec9c76a8aabb51719edc6b496dd Mon Sep 17 00:00:00 2001 From: Ben Gotow Date: Thu, 28 Jul 2016 11:20:02 -0700 Subject: [PATCH] fix(specs): Wait longer in DraftStore specs for window close --- spec/stores/draft-store-spec.es6 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spec/stores/draft-store-spec.es6 b/spec/stores/draft-store-spec.es6 index a711218dd..7e8183a0b 100644 --- a/spec/stores/draft-store-spec.es6 +++ b/spec/stores/draft-store-spec.es6 @@ -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(); }); });