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
84c08edcf3
commit
6d10e45135
1 changed files with 2 additions and 2 deletions
|
@ -177,7 +177,7 @@ describe "EditorController", ->
|
||||||
.should.equal true
|
.should.equal true
|
||||||
|
|
||||||
it "should return the project model view, privilege level and protocol version", ->
|
it "should return the project model view, privilege level and protocol version", ->
|
||||||
@callback.calledWith(null, @projectModelView, "owner", @EditorController.protocolVersion).should.equal true
|
@callback.calledWith(null, @projectModelView, "owner").should.equal true
|
||||||
|
|
||||||
describe "when not authorized", ->
|
describe "when not authorized", ->
|
||||||
beforeEach ->
|
beforeEach ->
|
||||||
|
@ -186,7 +186,7 @@ describe "EditorController", ->
|
||||||
@EditorController.buildJoinProjectView(@project_id, @user_id, @callback)
|
@EditorController.buildJoinProjectView(@project_id, @user_id, @callback)
|
||||||
|
|
||||||
it "should return false in the callback", ->
|
it "should return false in the callback", ->
|
||||||
@callback.calledWith(null, null, false, @EditorController.protocolVersion).should.equal true
|
@callback.calledWith(null, null, false).should.equal true
|
||||||
|
|
||||||
|
|
||||||
describe "leaveProject", ->
|
describe "leaveProject", ->
|
||||||
|
|
Loading…
Reference in a new issue