mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
fix settings unit test
This commit is contained in:
parent
e3011b2521
commit
ebabe52632
1 changed files with 4 additions and 2 deletions
|
@ -1,5 +1,6 @@
|
|||
const chai = require('chai')
|
||||
const { expect } = chai
|
||||
const SandboxedModule = require('sandboxed-module')
|
||||
|
||||
describe('Settings', function() {
|
||||
describe('s3', function() {
|
||||
|
@ -11,8 +12,9 @@ describe('Settings', function() {
|
|||
}
|
||||
}
|
||||
process.env.S3_BUCKET_CREDENTIALS = JSON.stringify(s3Settings)
|
||||
|
||||
const settings = require('settings-sharelatex')
|
||||
const settings = SandboxedModule.require('settings-sharelatex', {
|
||||
globals: { console }
|
||||
})
|
||||
expect(settings.filestore.s3BucketCreds).to.deep.equal(s3Settings)
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue