mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Don't use workspace's itemLocationStore in tests
This commit is contained in:
@@ -294,6 +294,15 @@ describe('Workspace', () => {
|
||||
})
|
||||
|
||||
describe('when the active pane does not have an editor for the given uri', () => {
|
||||
beforeEach(() => {
|
||||
atom.workspace.enablePersistence = true
|
||||
})
|
||||
|
||||
afterEach(async () => {
|
||||
await atom.workspace.itemLocationStore.clear()
|
||||
atom.workspace.enablePersistence = false
|
||||
})
|
||||
|
||||
it('adds and activates a new editor for the given path on the active pane', () => {
|
||||
let editor = null
|
||||
waitsForPromise(() => workspace.open('a').then(o => { editor = o }))
|
||||
|
||||
Reference in New Issue
Block a user