Mock out logger in tests

This commit is contained in:
Shane Kilkelly 2017-06-20 08:25:50 +01:00
parent 7b8e9963e8
commit 65eaf0ad10

View file

@ -12,6 +12,7 @@ describe "ResourceWriter", ->
"./UrlCache" : @UrlCache = {}
"mkdirp" : @mkdirp = sinon.stub().callsArg(1)
"./OutputFileFinder": @OutputFileFinder = {}
"logger-sharelatex": {log: sinon.stub(), err: sinon.stub()}
"./Metrics": @Metrics =
Timer: class Timer
done: sinon.stub()