[misc] test/unit: add missing globals that are lazy loaded

This commit is contained in:
Jakob Ackermann 2020-02-23 15:43:26 +00:00
parent 7920570dd8
commit 54e3b57772
2 changed files with 2 additions and 1 deletions

View file

@ -158,7 +158,7 @@ describe('S3PersistorTests', function() {
'metrics-sharelatex': Metrics, 'metrics-sharelatex': Metrics,
crypto crypto
}, },
globals: { console } globals: { console, Buffer }
}) })
}) })

View file

@ -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
} }