mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 23:27:26 +01:00
tests for tags
This commit is contained in:
@@ -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}`);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user