   else
     fs.unlinkSync(_path)
 
-# TODO: Remove this after atom/atom#13977 lands in favor of unguarded `getCenter()` calls
-getCenter = -> atom.workspace.getCenter?() ? atom.workspace
-
 getOrScheduleUpdatePromise = ->
   new Promise((resolve) -> etch.getScheduler().updateDocument(resolve))
 

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

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

      waitsFor ->
        atom.workspace.getActiveTextEditor()

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

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



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

