From 192eb8b44fe530ad3b3aad185c90a8dd438ce90f Mon Sep 17 00:00:00 2001 From: Alasdair Smith Date: Mon, 26 Feb 2018 11:16:04 +0000 Subject: [PATCH] Fix error not being defined in wrong describe block --- .../coffee/Authentication/AuthenticationControllerTests.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/web/test/unit/coffee/Authentication/AuthenticationControllerTests.coffee b/services/web/test/unit/coffee/Authentication/AuthenticationControllerTests.coffee index a014b28098..92d2a7dbdb 100644 --- a/services/web/test/unit/coffee/Authentication/AuthenticationControllerTests.coffee +++ b/services/web/test/unit/coffee/Authentication/AuthenticationControllerTests.coffee @@ -99,6 +99,7 @@ describe "AuthenticationController", -> @req.session.save = sinon.stub().callsArgWith(0, null) @req.sessionStore = {generate: sinon.stub()} @passport.authenticate.callsArgWith(1, null, @user, @info) + @err = new Error('woops') it 'should call passport.authenticate', () -> @AuthenticationController.passportLogin @req, @res, @next @@ -107,7 +108,6 @@ describe "AuthenticationController", -> describe 'when authenticate produces an error', -> beforeEach -> - @err = new Error('woops') @passport.authenticate.callsArgWith(1, @err) it 'should return next with an error', () ->