           atom.commands.dispatch(treeView.element, 'tree-view:open-selected-entry-right')
 
       it "should have opened both panes", ->
-        expect(getCenter().getPanes().length).toBe 2
+        expect(atom.workspace.getCenter().getPanes().length).toBe 2
 
       describe "tree-view:open-selected-entry", ->
         beforeEach ->
           atom.config.set "tree-view.alwaysOpenExisting", true
         describe "when the first pane is focused, a file is opened that is already open in the second pane", ->
           beforeEach ->
-            firstPane = getCenter().getPanes()[0]
+            firstPane = atom.workspace.getCenter().getPanes()[0]
             firstPane.activate()
             selectEntry 'tree-view.txt'
             waitForWorkspaceOpenEvent ->
               atom.commands.dispatch treeView.element, "tree-view:open-selected-entry"
 
           it "opens the file in the second pane and focuses it", ->
-            pane = getCenter().getPanes()[1]
+            pane = atom.workspace.getCenter().getPanes()[1]
             item = atom.workspace.getCenter().getActivePaneItem()
             expect(atom.views.getView(pane)).toHaveFocus()
             expect(item.getPath()).toBe atom.project.getDirectories()[0].resolve('tree-view.txt')

        describe "when the first pane is focused, a file is opened that is already open in the second pane", ->
          firstPane = null
          beforeEach ->
            firstPane = getCenter().getPanes()[0]
            firstPane.activate()
            selectEntry 'tree-view.txt'
            waitForWorkspaceOpenEvent ->

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

            treeView.focus()
