mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-01 13:02:07 -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,
|
'metrics-sharelatex': Metrics,
|
||||||
crypto
|
crypto
|
||||||
},
|
},
|
||||||
globals: { console }
|
globals: { console, Buffer }
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
@ -12,6 +12,7 @@ describe('SafeExec', function() {
|
||||||
options = { timeout: 10 * 1000, killSignal: 'SIGTERM' }
|
options = { timeout: 10 * 1000, killSignal: 'SIGTERM' }
|
||||||
|
|
||||||
safeExec = SandboxedModule.require(modulePath, {
|
safeExec = SandboxedModule.require(modulePath, {
|
||||||
|
globals: { process },
|
||||||
requires: {
|
requires: {
|
||||||
'settings-sharelatex': settings
|
'settings-sharelatex': settings
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue