               newPath = path.join(dirPath, "new/dir")
               addDialog.miniEditor.insertText("new/dir/")
               addDialog.trigger 'core:confirm'
-              expect(fs.existsSync(newPath)).toBeTruthy()
               expect(fs.isDirectorySync(newPath)).toBeTruthy()
               expect(addDialog.parent()).not.toExist()
               expect(atom.workspace.getActivePaneItem().getPath()).not.toBe newPath

                addDialog.trigger 'core:confirm'

              runs ->
                expect(fs.existsSync(newPath)).toBeTruthy()
                expect(fs.isFileSync(newPath)).toBeTruthy()
                expect(addDialog.parent()).not.toExist()
                expect(atom.workspace.getActivePaneItem().getPath()).toBe newPath

              newPath = path.join(dirPath, "new2/")
              addDialog.miniEditor.insertText("new2/")
              addDialog.trigger 'core:confirm'
              expect(fs.isDirectorySync(newPath)).toBeTruthy()
              expect(addDialog.parent()).not.toExist()
              expect(atom.workspace.getActivePaneItem().getPath()).not.toBe newPath
