tests for tags

This commit is contained in:
Matteo Pagliazzi
2015-12-14 21:56:09 +01:00
parent 155719996d
commit 9864b8a1cb
2 changed files with 4 additions and 3 deletions

View File

@@ -277,6 +277,7 @@ function _updateDocument (collectionName, doc, update, cb) {
return cb();
}
// TODO use config for db url?
mongo.connect('mongodb://localhost/habitrpg_test', (connectErr, db) => {
if (connectErr) throw new Error(`Error connecting to database when updating ${collectionName} collection: ${connectErr}`);