Prevent spec from closing window

This commit is contained in:
Nathan Sobo 2015-11-20 10:34:05 -07:00
parent a7809d6772
commit 704da43800

View File

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