diff --git a/services/web/test/unit/coffee/Authentication/AuthenticationControllerTests.coffee b/services/web/test/unit/coffee/Authentication/AuthenticationControllerTests.coffee index 467e2165f6..92d2a7dbdb 100644 --- a/services/web/test/unit/coffee/Authentication/AuthenticationControllerTests.coffee +++ b/services/web/test/unit/coffee/Authentication/AuthenticationControllerTests.coffee @@ -185,16 +185,16 @@ describe "AuthenticationController", -> @req.login.callCount.should.equal 1 done() - it 'should call UserSessionsManager.trackSession', (done) -> - @call (err) => - @UserSessionsManager.trackSession.callCount.should.equal 1 - done() - it 'should call req.session.save', (done) -> @call (err) => @req.session.save.callCount.should.equal 1 done() + it 'should call UserSessionsManager.trackSession', (done) -> + @call (err) => + @UserSessionsManager.trackSession.callCount.should.equal 1 + done() + describe 'when req.session.save produces an error', -> beforeEach ->