fix(spec): remove obsolete account store spec

This commit is contained in:
Evan Morikawa 2016-05-19 11:59:02 -07:00
parent b0e66519fc
commit 99a8b4fb04

View file

@ -122,7 +122,6 @@ describe "AccountStore", ->
"organization_unit": "label" "organization_unit": "label"
@instance = new @constructor @instance = new @constructor
spyOn(NylasEnv.config, "set") spyOn(NylasEnv.config, "set")
spyOn(Actions, 'focusDefaultMailboxPerspectiveForAccounts')
spyOn(@instance, "trigger") spyOn(@instance, "trigger")
@instance.addAccountFromJSON(@json) @instance.addAccountFromJSON(@json)
@ -139,9 +138,6 @@ describe "AccountStore", ->
# Version must be updated last since it will trigger other windows to load nylas.accounts # Version must be updated last since it will trigger other windows to load nylas.accounts
expect(NylasEnv.config.set.calls[2].args).toEqual(['nylas.accountsVersion', 1]) expect(NylasEnv.config.set.calls[2].args).toEqual(['nylas.accountsVersion', 1])
it "selects the account", ->
expect(Actions.focusDefaultMailboxPerspectiveForAccounts).toHaveBeenCalledWith(["B"])
it "triggers", -> it "triggers", ->
expect(@instance.trigger).toHaveBeenCalled() expect(@instance.trigger).toHaveBeenCalled()