mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-11-12 22:50:54 +03:00
Prevent spec from closing window
This commit is contained in:
parent
a7809d6772
commit
704da43800
@ -1440,6 +1440,7 @@ describe "Workspace", ->
|
||||
|
||||
describe "::closeActivePaneItemOrEmptyPaneOrWindow", ->
|
||||
beforeEach ->
|
||||
spyOn(atom, 'close')
|
||||
waitsForPromise -> atom.workspace.open()
|
||||
|
||||
it "closes the active pane item, or the active pane if it is empty, or the current window if there is only the empty root pane", ->
|
||||
@ -1467,6 +1468,5 @@ describe "Workspace", ->
|
||||
atom.workspace.closeActivePaneItemOrEmptyPaneOrWindow()
|
||||
expect(atom.workspace.getPanes().length).toBe 1
|
||||
|
||||
spyOn(atom, 'close')
|
||||
atom.workspace.closeActivePaneItemOrEmptyPaneOrWindow()
|
||||
expect(atom.close).toHaveBeenCalled()
|
||||
|
Loading…
Reference in New Issue
Block a user