more tests

This commit is contained in:
Barış Soner Uşaklı
2017-05-19 20:24:54 -04:00
parent 77894915eb
commit fd0043f36a
5 changed files with 201 additions and 103 deletions

View File

@@ -81,6 +81,10 @@
var db = require('../../src/database');
after(function (done) {
db.close(done);
});
before(function (done) {
this.timeout(30000);
var meta;
@@ -91,6 +95,9 @@
function (next) {
db.emptydb(next);
},
function (next) {
db.createIndices(next);
},
function (next) {
winston.info('test_database flushed');
meta = require('../../src/meta');