瀏覽代碼

Fix unit test

James Allen 12 年之前
父節點
當前提交
6d10e45135
共有 1 個文件被更改,包括 2 次插入 和 2 次删除
  1. 2 2
      services/web/test/UnitTests/coffee/Editor/EditorControllerTests.coffee

+ 2 - 2
services/web/test/UnitTests/coffee/Editor/EditorControllerTests.coffee

@@ -177,7 +177,7 @@ describe "EditorController", ->
 					.should.equal true
 
 			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", ->
 			beforeEach ->
@@ -186,7 +186,7 @@ describe "EditorController", ->
 				@EditorController.buildJoinProjectView(@project_id, @user_id, @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", ->