From 1e4e68c64ab024b5af2e8c345f6c875736bb8e17 Mon Sep 17 00:00:00 2001 From: Henry Oswald Date: Tue, 10 Jul 2018 14:55:40 +0100 Subject: [PATCH] fix settings test --- services/filestore/test/unit/coffee/SettingsTests.coffee | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/services/filestore/test/unit/coffee/SettingsTests.coffee b/services/filestore/test/unit/coffee/SettingsTests.coffee index 95278622ca..efb690511e 100644 --- a/services/filestore/test/unit/coffee/SettingsTests.coffee +++ b/services/filestore/test/unit/coffee/SettingsTests.coffee @@ -4,19 +4,16 @@ chai = require('chai') should = chai.should() expect = chai.expect modulePath = "../../../app/js/BucketController.js" -SandboxedModule = require('sandboxed-module') describe "Settings", -> describe "s3", -> it "should use JSONified env var if present", (done)-> s3_settings = - key: 'default_key' - secret: 'default_secret' bucket1: auth_key: 'bucket1_key' auth_secret: 'bucket1_secret' - process.env['S3_CREDENTIALS'] = JSON.stringify s3_settings + process.env['S3_BUCKET_CREDENTIALS'] = JSON.stringify s3_settings - settings =require('settings-sharelatex') - expect(settings.filestore.s3).to.deep.equal s3_settings + settings = require("settings-sharelatex") + expect(settings.filestore.s3BucketCreds).to.deep.equal s3_settings done()