mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Fix unit test
This commit is contained in:
parent
5f5445f625
commit
40048d49a2
1 changed files with 2 additions and 2 deletions
|
@ -84,8 +84,8 @@ describe "ProjectGetter", ->
|
||||||
@fields = {"mock": "fields"}
|
@fields = {"mock": "fields"}
|
||||||
@Project.find = sinon.stub()
|
@Project.find = sinon.stub()
|
||||||
@Project.find.withArgs({owner_ref: @user_id}, @fields).yields(null, ["mock-owned-projects"])
|
@Project.find.withArgs({owner_ref: @user_id}, @fields).yields(null, ["mock-owned-projects"])
|
||||||
@CollaboratorsHandler.getProjectsUserIsMemberOf = sinon.stub()
|
@CollaboratorsHandler.getProjectsUserIsCollaboratorOf = sinon.stub()
|
||||||
@CollaboratorsHandler.getProjectsUserIsMemberOf.withArgs(@user_id, @fields).yields(null, ["mock-rw-projects"], ["mock-ro-projects"])
|
@CollaboratorsHandler.getProjectsUserIsCollaboratorOf.withArgs(@user_id, @fields).yields(null, ["mock-rw-projects"], ["mock-ro-projects"])
|
||||||
@ProjectGetter.findAllUsersProjects @user_id, @fields, @callback
|
@ProjectGetter.findAllUsersProjects @user_id, @fields, @callback
|
||||||
|
|
||||||
it "should call the callback with all the projects", ->
|
it "should call the callback with all the projects", ->
|
||||||
|
|
Loading…
Reference in a new issue