Write removed file to temp directory

This commit is contained in:
Kevin Sawicki 2014-06-02 10:12:38 -07:00
parent bd873dc851
commit b6fcc35131

View File

@ -166,7 +166,8 @@ describe "PaneView", ->
it "removes the pane item", ->
editor = null
jasmine.unspy(window, 'setTimeout')
filePath = temp.openSync('atom').path
filePath = path.join(temp.mkdirSync(), 'file.txt')
fs.writeFileSync(filePath, '')
waitsForPromise ->
atom.workspace.open(filePath).then (o) -> editor = o