fix(spec): fix contact store spec

Since it's not Promise-based anymore. It was just the spec that relied on
this.
This commit is contained in:
Evan Morikawa 2015-10-22 14:13:51 -07:00
parent c9d7743cc6
commit ada6e5a2f6

View file

@ -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