mirror of
https://github.com/overleaf/overleaf.git
synced 2025-03-08 11:32:39 +00:00
fixed tests whoops
This commit is contained in:
parent
b951ab798c
commit
aa83b5ca5d
1 changed files with 2 additions and 3 deletions
|
@ -332,7 +332,7 @@ describe "SubscriptionController sanboxed", ->
|
|||
@req.body =
|
||||
planName:"student"
|
||||
|
||||
@res.redirect = ()=>
|
||||
@res.send = ()=>
|
||||
@SubscriptionHandler.updateSubscription.calledWith(@user, "student-annual", "STUDENTCODEHERE").should.equal true
|
||||
done()
|
||||
|
||||
|
@ -343,9 +343,8 @@ describe "SubscriptionController sanboxed", ->
|
|||
@req.body =
|
||||
planName:"collaborator"
|
||||
|
||||
@res.redirect = (url)=>
|
||||
@res.send = (url)=>
|
||||
@SubscriptionHandler.updateSubscription.calledWith(@user, "collaborator-annual", "COLLABORATORCODEHERE").should.equal true
|
||||
url.should.equal "/user/subscription/thank-you"
|
||||
done()
|
||||
|
||||
@SubscriptionController.processUpgradeToAnnualPlan @req, @res
|
||||
|
|
Loading…
Reference in a new issue