fix unit tests

This commit is contained in:
Brian Gough 2017-08-09 15:22:44 +01:00
parent 2950c01130
commit c0ed71f65c

View file

@ -7,7 +7,9 @@ path = require "path"
describe "ResourceWriter", ->
beforeEach ->
@ResourceWriter = SandboxedModule.require modulePath, requires:
"fs": @fs = { mkdir: sinon.stub().callsArg(1) }
"fs": @fs =
mkdir: sinon.stub().callsArg(1)
unlink: sinon.stub().callsArg(1)
"wrench": @wrench = {}
"./UrlCache" : @UrlCache = {}
"mkdirp" : @mkdirp = sinon.stub().callsArg(1)