mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-11-14 04:29:04 +03: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:
parent
99c1819ceb
commit
6d7971cd50
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user