mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-31 21:01:33 +02:00
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
@@ -29,6 +29,9 @@ describe('ProjectUpdateHandler', function() {
|
||||
this.ProjectModel = Project = class Project {}
|
||||
this.ProjectModel.update = sinon.stub().callsArg(3)
|
||||
return (this.handler = SandboxedModule.require(modulePath, {
|
||||
globals: {
|
||||
console: console
|
||||
},
|
||||
requires: {
|
||||
'../../models/Project': { Project: this.ProjectModel },
|
||||
'logger-sharelatex': { log: sinon.stub() }
|
||||
|
||||
Reference in New Issue
Block a user