             expect(openFilePaths).toEqual([undefined])
 
         it "focuses the directory's parent folder", ->
-          jasmine.attachToDOM(workspaceElement)
-
           dirView2.dispatchEvent(new MouseEvent('click', {bubbles: true, detail: 1}))
           treeView.focus()
 

            expect(openFilePaths).toEqual([])

        it "does not close editors that have been modified", ->
          jasmine.attachToDOM(workspaceElement)

          waitForWorkspaceOpenEvent ->
            atom.workspace.open(filePath2)


            expect(openFilePaths).toEqual([filePath20])

        it "does not error when Untitled editors are also open (regresssion)", ->
          waitForWorkspaceOpenEvent ->
            atom.workspace.open(filePath2)

