mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-24 20:11:45 +00:00
Fix error not being defined in wrong describe block
This commit is contained in:
parent
192eb8b44f
commit
34b53726d4
1 changed files with 1 additions and 1 deletions
|
@ -108,6 +108,7 @@ describe "CollaboratorsInviteController", ->
|
|||
}
|
||||
@LimitationsManager.canAddXCollaborators = sinon.stub().callsArgWith(2, null, true)
|
||||
@CollaboratorsInviteHandler.inviteToProject = sinon.stub().callsArgWith(4, null, @invite)
|
||||
@err = new Error('woops')
|
||||
@callback = sinon.stub()
|
||||
@next = sinon.stub()
|
||||
|
||||
|
@ -163,7 +164,6 @@ describe "CollaboratorsInviteController", ->
|
|||
beforeEach ->
|
||||
@CollaboratorsInviteController._checkShouldInviteEmail = sinon.stub().callsArgWith(1, null, true)
|
||||
@CollaboratorsInviteController._checkRateLimit = sinon.stub().yields(null, true)
|
||||
@err = new Error('woops')
|
||||
@LimitationsManager.canAddXCollaborators = sinon.stub().callsArgWith(2, @err)
|
||||
@CollaboratorsInviteController.inviteToProject @req, @res, @next
|
||||
|
||||
|
|
Loading…
Reference in a new issue