Merge pull request #1937 from overleaf/spd-sandboxedmodule-global-console
Add 'console' to SandboxedModule globals GitOrigin-RevId: fad442ca128561a4fa193b929f217cf31ad0f043
This commit is contained in:
committed by
sharelatex
parent
9cc5dc968c
commit
238e2b2565
@@ -91,6 +91,9 @@ describe('SubscriptionController', function() {
|
||||
this.GeoIpLookup = { getCurrencyCode: sinon.stub() }
|
||||
this.UserGetter = { getUser: sinon.stub().callsArgWith(2, null, this.user) }
|
||||
this.SubscriptionController = SandboxedModule.require(modulePath, {
|
||||
globals: {
|
||||
console: console
|
||||
},
|
||||
requires: {
|
||||
'../Authentication/AuthenticationController': this
|
||||
.AuthenticationController,
|
||||
|
||||
Reference in New Issue
Block a user