mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-22 23:23:54 +08:00
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:
parent
c9d7743cc6
commit
ada6e5a2f6
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue