Fix config.js new shape
This commit is contained in:
parent
1d062075c4
commit
90328d5faf
|
@ -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();
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue