Fix window spec.

The windowStatePath now requires atom.windowMode, without setting it the
deserializeEditorWindow would create the wrong window.project.
This commit is contained in:
Cheng Zhao
2013-05-24 21:10:40 +08:00
parent 6edcb553e8
commit a3b7df7b25

View File

@@ -38,6 +38,7 @@ beforeEach ->
window.git = Git.open(window.project.getPath())
window.resetTimeouts()
atom.windowMode = 'editor'
atom.packageStates = {}
spyOn(atom, 'setWindowState')
syntax.clearGrammarOverrides()