Clean DB before serve

This commit is contained in:
Chi Vinh Le
2017-11-07 16:42:37 +01:00
parent bf2e11ef9a
commit 2a0f70f084
2 changed files with 5 additions and 1 deletions
+1
View File
@@ -3,6 +3,7 @@ const {shutdown} = require('../../bin/util');
module.exports = {
before: async (done) => {
console.log('Dropping test database');
await mongoose.connection.dropDatabase();
done();
},