mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-27 18:13:07 +00:00
fix unit tests
This commit is contained in:
parent
c6225d614e
commit
6374a641d5
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@ describe 'EventLogger', ->
|
||||||
@start = Date.now()
|
@start = Date.now()
|
||||||
tk.freeze(new Date(@start))
|
tk.freeze(new Date(@start))
|
||||||
@EventLogger = SandboxedModule.require modulePath, requires:
|
@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()}
|
"metrics-sharelatex": @metrics = {inc: sinon.stub()}
|
||||||
@channel = "applied-ops"
|
@channel = "applied-ops"
|
||||||
@id_1 = "random-hostname:abc-1"
|
@id_1 = "random-hostname:abc-1"
|
||||||
|
|
Loading…
Reference in a new issue