Wrap temp.cleanupSync() calls in try-catch blocks

This commit is contained in:
Ash Wilson
2017-08-04 14:18:43 -04:00
parent 97ffe46247
commit dc9fe25255
17 changed files with 56 additions and 17 deletions

View File

@@ -9,7 +9,13 @@ const {Disposable} = require('event-kit')
const {it, fit, ffit, fffit, beforeEach, afterEach} = require('./async-spec-helpers')
describe('WorkspaceElement', () => {
afterEach(() => { temp.cleanupSync() })
afterEach(() => {
try {
temp.cleanupSync()
} catch (e) {
// Do nothing
}
})
describe('when the workspace element is focused', () => {
it('transfers focus to the active pane', () => {