mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Better variable name in test
It should be a subscription id, instead of an admin id. The test passes anyway because the db calls are mocked, but the wrong variable name can cause confusion.
This commit is contained in:
parent
f08b64eeac
commit
ae440f2ee6
1 changed files with 2 additions and 2 deletions
|
@ -88,8 +88,8 @@ describe "SubscriptionGroupHandler", ->
|
|||
done()
|
||||
|
||||
it "should add the user to the group", (done)->
|
||||
@Handler.addUserToGroup @adminUser_id, @newEmail, (err)=>
|
||||
@SubscriptionUpdater.addUserToGroup.calledWith(@adminUser_id, @user._id).should.equal true
|
||||
@Handler.addUserToGroup @subscription_id, @newEmail, (err)=>
|
||||
@SubscriptionUpdater.addUserToGroup.calledWith(@subscription_id, @user._id).should.equal true
|
||||
done()
|
||||
|
||||
it "should not add the user to the group if the limit has been reached", (done)->
|
||||
|
|
Loading…
Reference in a new issue