mirror of
https://github.com/atom/atom.git
synced 2026-01-23 05:48:10 -05:00
Reduce flakiness of symbols view spec
Make sure file is removed before a file is moved over top of it.
This commit is contained in:
@@ -161,11 +161,15 @@ describe "SymbolsView", ->
|
||||
expect(rootView.getActiveEditor().getCursorBufferPosition()).toEqual [0,4]
|
||||
|
||||
describe "when the tag is in a file that doesn't exist", ->
|
||||
renamedPath = null
|
||||
|
||||
beforeEach ->
|
||||
fs.move(project.resolve("tagged-duplicate.js"), project.resolve("tagged-duplicate-renamed.js"))
|
||||
renamedPath = project.resolve("tagged-duplicate-renamed.js")
|
||||
fs.remove(renamedPath) if fs.exists(renamedPath)
|
||||
fs.move(project.resolve("tagged-duplicate.js"), renamedPath)
|
||||
|
||||
afterEach ->
|
||||
fs.move(project.resolve("tagged-duplicate-renamed.js"), project.resolve("tagged-duplicate.js"))
|
||||
fs.move(renamedPath, project.resolve("tagged-duplicate.js"))
|
||||
|
||||
it "doesn't display the tag", ->
|
||||
rootView.open("tagged.js")
|
||||
|
||||
Reference in New Issue
Block a user