[misc] test/unit: add missing globals that are lazy loaded
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user