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

@@ -21,7 +21,8 @@ describe "CommandInstaller on #darwin", ->
spyOn(CommandInstaller::, 'getInstallDirectory').andReturn(installationPath)
afterEach ->
temp.cleanupSync()
try
temp.cleanupSync()
it "shows an error dialog when installing commands interactively fails", ->
appDelegate = jasmine.createSpyObj("appDelegate", ["confirm"])