Stub the correct fs method

This commit is contained in:
Ash Wilson 2017-09-12 10:13:05 -04:00
parent 046ff87f01
commit 21e220cd5f
No known key found for this signature in database
GPG Key ID: 81B1DDB704F69D2A

View File

@ -878,7 +878,7 @@ describe "Config", ->
beforeEach ->
atom.notifications.onDidAddNotification addErrorHandler = jasmine.createSpy()
spyOn(fs, "existsSync").andCallFake ->
spyOn(fs, "makeTreeSync").andCallFake ->
error = new Error()
error.code = 'EPERM'
throw error