finally fix tests

This commit is contained in:
Matteo Pagliazzi
2016-01-29 12:52:57 +01:00
parent 80160597b0
commit 361d0aa35c
4 changed files with 19 additions and 15 deletions

View File

@@ -20,7 +20,6 @@ export async function checkExistence (collectionName, id) {
// Specifically helpful for the GET /groups tests,
// resets the db to an empty state and creates a tavern document
export async function resetHabiticaDB () {
console.log('calling resetHabiticaDatabase'); // eslint-disable-line
return new Promise((resolve, reject) => {
mongoose.connection.db.dropDatabase((dbErr) => {
if (dbErr) return reject(dbErr);