Fix workspace specs

This commit is contained in:
Nathan Sobo
2017-04-08 13:29:50 -06:00
committed by Max Brunsfeld
parent 57613d9061
commit 2e066120bd

View File

@@ -2554,6 +2554,15 @@ i = /test/; #FIXME\
})
describe('when an item is moved', () => {
beforeEach(() => {
atom.workspace.enablePersistence = true
})
afterEach(async () => {
await atom.workspace.itemLocationStore.clear()
atom.workspace.enablePersistence = false
})
it("stores the new location if it's not the default", () => {
const ITEM_URI = 'atom://test'
const item = {