mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-01 05:11:34 +02:00
Fix unit test
This commit is contained in:
@@ -319,8 +319,8 @@ describe 'ReferencesHandler', ->
|
||||
@owner =
|
||||
features:
|
||||
references: false
|
||||
@User.find = sinon.stub()
|
||||
@User.find.withArgs({_id: @owner_ref}, {features: true}).yields(null, @owner)
|
||||
@User.findOne = sinon.stub()
|
||||
@User.findOne.withArgs({_id: @owner_ref}, {features: true}).yields(null, @owner)
|
||||
@call = (callback) =>
|
||||
@handler._isFullIndex @fakeProject, callback
|
||||
|
||||
|
||||
Reference in New Issue
Block a user