Fix bug where stubs were attached to undefined variables

This commit is contained in:
Alasdair Smith 2018-02-26 12:19:56 +00:00
parent 5d017beac5
commit fd8c61985f

View file

@ -38,8 +38,8 @@ describe 'SubscriptionViewModelBuilder', ->
@builder = SandboxedModule.require modulePath, requires:
"settings-sharelatex": { apis: { recurly: { subdomain: "example.com" }}}
"./RecurlyWrapper": @RecurlyWrapper
"./PlansLocator": @PlansLocator
"./SubscriptionLocator": @SubscriptionLocator
"./PlansLocator": @PlansLocator = {}
"./SubscriptionLocator": @SubscriptionLocator = {}
"./SubscriptionFormatters": @SubscriptionFormatters
"./LimitationsManager": {}
"logger-sharelatex":