mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
[misc] test/unit: add missing globals that are lazy loaded
This commit is contained in:
parent
7920570dd8
commit
54e3b57772
2 changed files with 2 additions and 1 deletions
|
@ -158,7 +158,7 @@ describe('S3PersistorTests', function() {
|
|||
'metrics-sharelatex': Metrics,
|
||||
crypto
|
||||
},
|
||||
globals: { console }
|
||||
globals: { console, Buffer }
|
||||
})
|
||||
})
|
||||
|
||||
|
|
|
@ -12,6 +12,7 @@ describe('SafeExec', function() {
|
|||
options = { timeout: 10 * 1000, killSignal: 'SIGTERM' }
|
||||
|
||||
safeExec = SandboxedModule.require(modulePath, {
|
||||
globals: { process },
|
||||
requires: {
|
||||
'settings-sharelatex': settings
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue