mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-13 21:53:43 +01:00
mock out metrics in tests
This commit is contained in:
@@ -26,6 +26,7 @@ describe "MongoAWS", ->
|
||||
"./mongojs" : { db: @db = {}, ObjectId: ObjectId }
|
||||
"JSONStream": @JSONStream = {}
|
||||
"readline-stream": @readline = sinon.stub()
|
||||
'./Metrics': {inc: ()->}
|
||||
|
||||
@project_id = ObjectId().toString()
|
||||
@doc_id = ObjectId().toString()
|
||||
|
||||
@@ -20,6 +20,7 @@ describe "PackManager", ->
|
||||
"./LockManager" : {}
|
||||
"./MongoAWS": {}
|
||||
"logger-sharelatex": { log: sinon.stub(), error: sinon.stub() }
|
||||
'./Metrics': {inc: ()->}
|
||||
@callback = sinon.stub()
|
||||
@doc_id = ObjectId().toString()
|
||||
@project_id = ObjectId().toString()
|
||||
|
||||
Reference in New Issue
Block a user