mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-01 13:14:16 +08:00
fix(category-picker): Update specs for sorting
This commit is contained in:
parent
04f5d2968f
commit
9892473513
1 changed files with 4 additions and 3 deletions
|
@ -39,9 +39,10 @@ describe 'CategoryPickerPopover', ->
|
|||
@archiveCategory = new Category(id: 'id-456', name: 'archive', displayName: "ArCHIVe", accountId: TEST_ACCOUNT_ID)
|
||||
@userCategory = new Category(id: 'id-789', name: null, displayName: "MyCategory", accountId: TEST_ACCOUNT_ID)
|
||||
|
||||
spyOn(Categories, "forAccount").andReturn NylasTestUtils.mockObservable(
|
||||
[@inboxCategory, @archiveCategory, @userCategory]
|
||||
)
|
||||
observable = NylasTestUtils.mockObservable([@inboxCategory, @archiveCategory, @userCategory])
|
||||
observable.sort = () => observable
|
||||
|
||||
spyOn(Categories, "forAccount").andReturn observable
|
||||
spyOn(CategoryStore, "getStandardCategory").andReturn @inboxCategory
|
||||
spyOn(AccountStore, "accountForItems").andReturn @account
|
||||
spyOn(Actions, "closePopover")
|
||||
|
|
Loading…
Reference in a new issue