diff --git a/spec/window-spec.coffee b/spec/window-spec.coffee index f98bb2f2d..8d0d68fce 100644 --- a/spec/window-spec.coffee +++ b/spec/window-spec.coffee @@ -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')