mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-09 13:36:46 +00:00
Fix error not being defined in wrong describe block
This commit is contained in:
parent
d79e226a20
commit
192eb8b44f
1 changed files with 1 additions and 1 deletions
|
@ -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', () ->
|
||||
|
|
Loading…
Add table
Reference in a new issue