mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
subscription tests fixed
This commit is contained in:
parent
cc84aaf834
commit
a89edde139
1 changed files with 4 additions and 2 deletions
|
@ -68,7 +68,9 @@ describe "SubscriptionController sanboxed", ->
|
||||||
"./LimitationsManager": @LimitationsManager
|
"./LimitationsManager": @LimitationsManager
|
||||||
"../../infrastructure/GeoIpLookup":@GeoIpLookup
|
"../../infrastructure/GeoIpLookup":@GeoIpLookup
|
||||||
'./RecurlyWrapper': @RecurlyWrapper
|
'./RecurlyWrapper': @RecurlyWrapper
|
||||||
"logger-sharelatex": log:->
|
"logger-sharelatex":
|
||||||
|
log:->
|
||||||
|
warn:->
|
||||||
"settings-sharelatex": @settings
|
"settings-sharelatex": @settings
|
||||||
"./SubscriptionDomainHandler":@SubscriptionDomainHandler
|
"./SubscriptionDomainHandler":@SubscriptionDomainHandler
|
||||||
|
|
||||||
|
@ -273,7 +275,7 @@ describe "SubscriptionController sanboxed", ->
|
||||||
describe "userCustomSubscriptionPage", ->
|
describe "userCustomSubscriptionPage", ->
|
||||||
beforeEach (done) ->
|
beforeEach (done) ->
|
||||||
@res.callback = done
|
@res.callback = done
|
||||||
@LimitationsManager.userHasSubscriptionOrIsGroupMember.callsArgWith(1, null, true)
|
@LimitationsManager.userHasSubscriptionOrIsGroupMember.callsArgWith(1, null, true, {})
|
||||||
@SubscriptionController.userCustomSubscriptionPage @req, @res
|
@SubscriptionController.userCustomSubscriptionPage @req, @res
|
||||||
|
|
||||||
it "should render the page", (done)->
|
it "should render the page", (done)->
|
||||||
|
|
Loading…
Reference in a new issue