From 704da43800b1d91a6fad983e4f190487e1465a92 Mon Sep 17 00:00:00 2001 From: Nathan Sobo Date: Fri, 20 Nov 2015 10:34:05 -0700 Subject: [PATCH] Prevent spec from closing window --- spec/workspace-spec.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/workspace-spec.coffee b/spec/workspace-spec.coffee index 124b0917c..1a28eea45 100644 --- a/spec/workspace-spec.coffee +++ b/spec/workspace-spec.coffee @@ -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()