From ada6e5a2f6f23c27e7de7c75b6421dc346b1d2f7 Mon Sep 17 00:00:00 2001 From: Evan Morikawa Date: Thu, 22 Oct 2015 14:13:51 -0700 Subject: [PATCH] fix(spec): fix contact store spec Since it's not Promise-based anymore. It was just the spec that relied on this. --- spec/stores/contact-store-spec.coffee | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/stores/contact-store-spec.coffee b/spec/stores/contact-store-spec.coffee index f1e1112b2..a09424876 100644 --- a/spec/stores/contact-store-spec.coffee +++ b/spec/stores/contact-store-spec.coffee @@ -52,9 +52,9 @@ describe "ContactStore", -> it "triggers a sort on a contact refresh", -> spyOn(ContactStore, "_sortContactsCacheWithRankings") - waitsForPromise -> - ContactStore.__refreshCache().then -> # Non debounced version - expect(ContactStore._sortContactsCacheWithRankings).toHaveBeenCalled() + ContactStore.__refreshCache() + advanceClock(100) + expect(ContactStore._sortContactsCacheWithRankings).toHaveBeenCalled() it "sorts the contact cache by the rankings", -> spyOn(ContactRankingStore, 'value').andReturn