           atom.commands.dispatch(treeView.element, 'tree-view:open-selected-entry-right')
 
     it "should have opened all windows", ->
-      expect(getCenter().getPanes().length).toBe 9
+      expect(atom.workspace.getCenter().getPanes().length).toBe 9
 
     [0..8].forEach (index) ->
       paneNumber = index + 1

        activePaneItem = null

        beforeEach ->
          firstPane = getCenter().getPanes()[0]
          firstPane.activate()

          treeView.focus()

        describe "when core.allowPendingPaneItems is set to true (default)", ->
          firstPane = activePaneItem = null
          beforeEach ->
            firstPane = atom.workspace.getCenter().getPanes()[0]
            firstPane.activate()

            treeView.focus()
