fix(category-picker): Update specs for sorting

This commit is contained in:
Ben Gotow 2016-05-31 17:05:17 -07:00
parent 04f5d2968f
commit 9892473513

View file

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