Fix config.js new shape

This commit is contained in:
Juan Picado 2017-04-27 06:54:53 +02:00
parent 1d062075c4
commit 90328d5faf
No known key found for this signature in database
GPG Key ID: 18AC54485952D158
2 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@ let Storage = require('./storage');
module.exports = function(config_hash) { module.exports = function(config_hash) {
Logger.setup(config_hash.logs); Logger.setup(config_hash.logs);
let config = Config(config_hash); let config = new Config(config_hash);
let storage = new Storage(config); let storage = new Storage(config);
let auth = Auth(config); let auth = Auth(config);
let app = express(); let app = express();

View File

@ -34,7 +34,7 @@ let packages = [
describe('search', function() { describe('search', function() {
before(function() { before(function() {
let config = Config(config_hash); let config = new Config(config_hash);
this.storage = new Storage(config); this.storage = new Storage(config);
Search.configureStorage(this.storage); Search.configureStorage(this.storage);
packages.map(function(item) { packages.map(function(item) {