diff --git a/spec/spec-helper.coffee b/spec/spec-helper.coffee index b16f6bd79..628142185 100644 --- a/spec/spec-helper.coffee +++ b/spec/spec-helper.coffee @@ -111,14 +111,14 @@ afterEach -> atom.workspaceView?.remove?() atom.workspaceView = null + + atom.workspace?.destroy() + atom.workspace = null delete atom.state.workspace atom.project?.destroy?() atom.project = null - atom.workspace?.destroy() - atom.workspace = null - delete atom.state.packageStates $('#jasmine-content').empty() unless window.debugContent