mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
failing unit test
This commit is contained in:
@@ -4,21 +4,9 @@ import { defaultsDeep as defaults } from 'lodash';
|
||||
import { model as User } from '../../website/src/models/user';
|
||||
import { model as Group } from '../../website/src/models/group';
|
||||
|
||||
let connection = mongoose.connection;
|
||||
|
||||
before((done) => {
|
||||
connection.on('open', () => {
|
||||
connection.db.dropDatabase(done);
|
||||
});
|
||||
});
|
||||
|
||||
after((done) => {
|
||||
connection.close(done);
|
||||
});
|
||||
|
||||
afterEach((done) => {
|
||||
sandbox.restore();
|
||||
connection.db.dropDatabase(done);
|
||||
mongoose.connection.db.dropDatabase(done);
|
||||
});
|
||||
|
||||
export function generateUser (options = {}) {
|
||||
|
||||
Reference in New Issue
Block a user