init express/webserver for tests

This commit is contained in:
barisusakli
2016-10-16 06:03:02 +03:00
parent 5a893a41a2
commit e462fadd94
3 changed files with 44 additions and 44 deletions

View File

@@ -7,7 +7,9 @@ module.exports = function (db, module) {
module.flushdb = function (callback) {
callback = callback || helpers.noop;
db.dropDatabase(callback);
db.dropDatabase(function (err) {
callback(err);
});
};
module.exists = function (key, callback) {