Merge pull request #1937 from overleaf/spd-sandboxedmodule-global-console

Add 'console' to SandboxedModule globals

GitOrigin-RevId: fad442ca128561a4fa193b929f217cf31ad0f043
This commit is contained in:
Shane Kilkelly
2019-07-15 11:33:47 +01:00
committed by sharelatex
parent 9cc5dc968c
commit 238e2b2565
142 changed files with 453 additions and 0 deletions

View File

@@ -41,6 +41,9 @@ describe('ProjectRootDocManager', function() {
stat: sinon.stub().callsArgWith(1, null, { size: 100 })
}
return (this.ProjectRootDocManager = SandboxedModule.require(modulePath, {
globals: {
console: console
},
requires: {
'./ProjectEntityHandler': (this.ProjectEntityHandler = {}),
'./ProjectEntityUpdateHandler': (this.ProjectEntityUpdateHandler = {}),