mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-04 07:10:06 +08:00
fix(specs)
This commit is contained in:
parent
7dfe5d55ae
commit
54427ccb9d
1 changed files with 6 additions and 5 deletions
|
@ -75,8 +75,9 @@ describe "FocusedPerspectiveStore", ->
|
|||
expect(FocusedPerspectiveStore.trigger).toHaveBeenCalled()
|
||||
expect(FocusedPerspectiveStore.current().categories()).toEqual([@userCategory])
|
||||
|
||||
it "should do nothing if the category is already focused", ->
|
||||
FocusedPerspectiveStore._onFocusPerspective(@inboxPerspective)
|
||||
spyOn(FocusedPerspectiveStore, '_setPerspective')
|
||||
FocusedPerspectiveStore._onFocusPerspective(@inboxPerspective)
|
||||
expect(FocusedPerspectiveStore._setPerspective).not.toHaveBeenCalled()
|
||||
describe "_setPerspective", ->
|
||||
it "should not trigger if the perspective is already focused", ->
|
||||
FocusedPerspectiveStore._setPerspective(@inboxPerspective)
|
||||
FocusedPerspectiveStore.trigger.reset()
|
||||
FocusedPerspectiveStore._setPerspective(@inboxPerspective)
|
||||
expect(FocusedPerspectiveStore.trigger).not.toHaveBeenCalled()
|
||||
|
|
Loading…
Reference in a new issue