Add missing 'process' global for settings tests

This commit is contained in:
Simon Detheridge 2020-03-04 10:08:31 +00:00
parent a3782422b7
commit 9807568de8

View file

@ -13,7 +13,7 @@ describe('Settings', function() {
}
process.env.S3_BUCKET_CREDENTIALS = JSON.stringify(s3Settings)
const settings = SandboxedModule.require('settings-sharelatex', {
globals: { console }
globals: { console, process }
})
expect(settings.filestore.s3BucketCreds).to.deep.equal(s3Settings)
})