Stub out logger in tests

This commit is contained in:
Shane Kilkelly 2017-03-31 11:25:23 +01:00
parent f7bc400f22
commit b14039715f

View file

@ -12,6 +12,7 @@ describe "MongoManager", ->
db: @db = { docs: {}, docOps: {} } db: @db = { docs: {}, docOps: {} }
ObjectId: ObjectId ObjectId: ObjectId
'metrics-sharelatex': {timeAsyncMethod: sinon.stub()} 'metrics-sharelatex': {timeAsyncMethod: sinon.stub()}
'logger-sharelatex': {log: ()->}
@project_id = ObjectId().toString() @project_id = ObjectId().toString()
@doc_id = ObjectId().toString() @doc_id = ObjectId().toString()
@callback = sinon.stub() @callback = sinon.stub()