Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit eabd725

Browse files
WliuWliu
authored andcommitted
Fix specs
1 parent 69c57b1 commit eabd725

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

spec/tree-view-package-spec.coffee

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2177,11 +2177,13 @@ describe "TreeView", ->
21772177
expect(callback).not.toHaveBeenCalled()
21782178

21792179
describe "tree-view:move", ->
2180+
beforeEach ->
2181+
jasmine.attachToDOM(workspaceElement)
2182+
21802183
describe "when a file is selected", ->
21812184
[moveDialog, callback] = []
21822185

21832186
beforeEach ->
2184-
jasmine.attachToDOM(workspaceElement)
21852187
callback = jasmine.createSpy("onEntryMoved")
21862188
treeView.onEntryMoved(callback)
21872189

@@ -2342,8 +2344,6 @@ describe "TreeView", ->
23422344
moveDialog = null
23432345

23442346
beforeEach ->
2345-
jasmine.attachToDOM(workspaceElement)
2346-
23472347
waitForWorkspaceOpenEvent ->
23482348
atom.workspace.open(filePath)
23492349

@@ -3465,6 +3465,7 @@ describe "TreeView", ->
34653465
describe "showSelectedEntryInFileManager()", ->
34663466
beforeEach ->
34673467
atom.notifications.clear()
3468+
jasmine.attachToDOM(workspaceElement)
34683469

34693470
it "displays the standard error output when the process fails", ->
34703471
{BufferedProcess} = require 'atom'

0 commit comments

Comments
 (0)