Use atom.state instead of defunct windowState in spec

This commit is contained in:
Nathan Sobo 2013-12-12 16:35:56 -08:00
parent 0b7f291e17
commit 208ed09109

View File

@ -87,9 +87,9 @@ describe "Window", ->
atom.unloadEditorWindow()
expect(atom.getWindowState().getObject('workspaceView')).toEqual workspaceViewState.toObject()
expect(atom.getWindowState().getObject('syntax')).toEqual syntaxState
expect(atom.saveWindowState).toHaveBeenCalled()
expect(atom.state.getObject('workspaceView')).toEqual workspaceViewState.toObject()
expect(atom.state.getObject('syntax')).toEqual syntaxState
expect(atom.saveSync).toHaveBeenCalled()
it "unsubscribes from all buffers", ->
atom.workspaceView.openSync('sample.js')