fix unit tests

This commit is contained in:
Brian Gough 2019-04-11 15:07:42 +01:00
parent c6225d614e
commit 6374a641d5

View file

@ -10,7 +10,7 @@ describe 'EventLogger', ->
@start = Date.now()
tk.freeze(new Date(@start))
@EventLogger = SandboxedModule.require modulePath, requires:
"logger-sharelatex": @logger = {error: sinon.stub()}
"logger-sharelatex": @logger = {error: sinon.stub(), warn: sinon.stub()}
"metrics-sharelatex": @metrics = {inc: sinon.stub()}
@channel = "applied-ops"
@id_1 = "random-hostname:abc-1"