|
|
@ -87,6 +87,9 @@ before(function (done) {
|
|
|
|
function (next) {
|
|
|
|
function (next) {
|
|
|
|
db.init(next);
|
|
|
|
db.init(next);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
function (next) {
|
|
|
|
|
|
|
|
db.createIndices(next);
|
|
|
|
|
|
|
|
},
|
|
|
|
function (next) {
|
|
|
|
function (next) {
|
|
|
|
setupMockDefaults(next);
|
|
|
|
setupMockDefaults(next);
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -146,9 +149,6 @@ function setupMockDefaults(callback) {
|
|
|
|
function (next) {
|
|
|
|
function (next) {
|
|
|
|
db.emptydb(next);
|
|
|
|
db.emptydb(next);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
function (next) {
|
|
|
|
|
|
|
|
db.createIndices(next);
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
function (next) {
|
|
|
|
function (next) {
|
|
|
|
winston.info('test_database flushed');
|
|
|
|
winston.info('test_database flushed');
|
|
|
|
setupDefaultConfigs(meta, next);
|
|
|
|
setupDefaultConfigs(meta, next);
|
|
|
|