   else
     fs.unlinkSync(_path)
 
+# TODO: Remove this after atom/atom#13977 lands in favor of unguarded `getCenter()` calls
+getCenter = -> atom.workspace.getCenter?() ? atom.workspace
+
 describe 'FuzzyFinder', ->
   [rootDir1, rootDir2] = []
   [fuzzyFinder, projectView, bufferView, gitStatusView, workspaceElement, fixturesPath] = []

        atom.commands.dispatch bufferView.element, 'pane:split-left'

      waitsFor ->
        atom.workspace.getPanes().length is 2

      waitsFor ->
        atom.workspace.getActiveTextEditor()

      runs ->
        [leftPane, rightPane] = atom.workspace.getPanes()
        expect(atom.workspace.getActivePane()).toBe leftPane
        expect(atom.workspace.getActiveTextEditor().getPath()).toBe atom.project.getDirectories()[0].resolve(filePath)

    it "opens the path by splitting the active editor right", ->
      expect(atom.workspace.getPanes().length).toBe 1
      pane = atom.workspace.getActivePane()
      filePath = null


        atom.commands.dispatch bufferView.element, 'pane:split-up'

      waitsFor ->
        getCenter().getPanes().length is 2

      waitsFor ->
        atom.workspace.getActiveTextEditor()

      runs ->
        [topPane, bottomPane] = getCenter().getPanes()
        expect(atom.workspace.getActivePane()).toBe topPane
        expect(atom.workspace.getActiveTextEditor().getPath()).toBe atom.project.getDirectories()[0].resolve(filePath)

    it "opens the path by splitting the active editor down", ->
      expect(getCenter().getPanes().length).toBe 1
      pane = atom.workspace.getActivePane()
      filePath = null

