|
@@ -116,7 +116,10 @@ describe 'WebsocketController', ->
|
|
|
@callback
|
|
@callback
|
|
|
.calledWith(new Error("not authorized"))
|
|
.calledWith(new Error("not authorized"))
|
|
|
.should.equal true
|
|
.should.equal true
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
|
|
+ it "should not log an error", ->
|
|
|
|
|
+ @logger.error.called.should.equal false
|
|
|
|
|
+
|
|
|
describe "leaveProject", ->
|
|
describe "leaveProject", ->
|
|
|
beforeEach ->
|
|
beforeEach ->
|
|
|
@DocumentUpdaterManager.flushProjectToMongoAndDelete = sinon.stub().callsArg(1)
|
|
@DocumentUpdaterManager.flushProjectToMongoAndDelete = sinon.stub().callsArg(1)
|