remove notLocalHost
This commit is contained in:
parent
529c6d0fe7
commit
5cd44be83c
9 changed files with 26 additions and 35 deletions
|
@ -3,9 +3,6 @@ const sinon = require('sinon');
|
|||
const proxyquire = require('proxyquire');
|
||||
const crypto = require('crypto');
|
||||
|
||||
const conf = require('../server/config.js');
|
||||
conf.notLocalHost = true;
|
||||
|
||||
const redisStub = {};
|
||||
const exists = sinon.stub();
|
||||
const hget = sinon.stub();
|
||||
|
@ -52,7 +49,10 @@ const storage = proxyquire('../server/storage', {
|
|||
'./log.js': function() {
|
||||
return logStub;
|
||||
},
|
||||
'aws-sdk': awsStub
|
||||
'aws-sdk': awsStub,
|
||||
'./config.js': {
|
||||
s3_bucket: 'test'
|
||||
}
|
||||
});
|
||||
|
||||
describe('Testing Length using aws', function() {
|
||||
|
|
|
@ -2,8 +2,7 @@ const assert = require('assert');
|
|||
const sinon = require('sinon');
|
||||
const proxyquire = require('proxyquire');
|
||||
|
||||
const conf = require('../server/config.js');
|
||||
conf.notLocalHost = false;
|
||||
// const conf = require('../server/config.js');
|
||||
|
||||
const redisStub = {};
|
||||
const exists = sinon.stub();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue