|
@@ -11,6 +11,8 @@ describe "MongoManager", ->
|
|
|
"./mongojs":
|
|
"./mongojs":
|
|
|
db: @db = { docs: {}, docOps: {} }
|
|
db: @db = { docs: {}, docOps: {} }
|
|
|
ObjectId: ObjectId
|
|
ObjectId: ObjectId
|
|
|
|
|
+ '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()
|
|
@@ -151,4 +153,4 @@ describe "MongoManager", ->
|
|
|
.should.equal true
|
|
.should.equal true
|
|
|
|
|
|
|
|
it "should call the callback", ->
|
|
it "should call the callback", ->
|
|
|
- @callback.called.should.equal true
|
|
|
|
|
|
|
+ @callback.called.should.equal true
|