Browse Source

Add missing 'process' global for settings tests

Simon Detheridge 6 năm trước cách đây
mục cha
commit
9807568de8
1 tập tin đã thay đổi với 1 bổ sung và 1 xóa
  1. 1 1
      services/filestore/test/unit/js/SettingsTests.js

+ 1 - 1
services/filestore/test/unit/js/SettingsTests.js

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