mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-14 13:17:24 +01:00
Upgrade tests packages (#9973)
* upgrade mochat to v5 * upgrade cross-spawn * upgrade chalk * try to fix mongoose * upgrade shelljs * upgrade expect.js * upgrade coveralls * upgrade cross-env * upgrade lcov-result-merger * upgrade image-size
This commit is contained in:
@@ -37,7 +37,7 @@ export async function getProperty (collectionName, id, path) {
|
||||
// resets the db to an empty state and creates a tavern document
|
||||
export async function resetHabiticaDB () {
|
||||
return new Promise((resolve, reject) => {
|
||||
mongoose.connection.db.dropDatabase((dbErr) => {
|
||||
mongoose.connection.dropDatabase((dbErr) => {
|
||||
if (dbErr) return reject(dbErr);
|
||||
let groups = mongoose.connection.db.collection('groups');
|
||||
let users = mongoose.connection.db.collection('users');
|
||||
@@ -119,7 +119,7 @@ before((done) => {
|
||||
});
|
||||
|
||||
after((done) => {
|
||||
mongoose.connection.db.dropDatabase((err) => {
|
||||
mongoose.connection.dropDatabase((err) => {
|
||||
if (err) return done(err);
|
||||
mongoose.connection.close(done);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user