Add expect for project state

This commit is contained in:
Kevin Sawicki
2014-03-04 16:21:08 -08:00
parent 372ca374cc
commit 35ad8abf4c

View File

@@ -90,11 +90,13 @@ describe "Window", ->
it "saves the serialized state of the window so it can be deserialized after reload", ->
workspaceState = atom.workspace.serialize()
syntaxState = atom.syntax.serialize()
projectState = atom.project.serialize()
atom.unloadEditorWindow()
expect(atom.state.workspace).toEqual workspaceState
expect(atom.state.syntax).toEqual syntaxState
expect(atom.state.project).toEqual projectState
expect(atom.saveSync).toHaveBeenCalled()
it "unsubscribes from all buffers", ->