mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
Use toObject instead of _doc
This commit is contained in:
@@ -11,11 +11,11 @@ afterEach(() => {
|
||||
});
|
||||
|
||||
export function generateUser(options={}) {
|
||||
return new User(options)._doc;
|
||||
return new User(options).toObject();
|
||||
}
|
||||
|
||||
export function generateGroup(options={}) {
|
||||
return new Group(options)._doc;
|
||||
return new Group(options).toObject();
|
||||
}
|
||||
|
||||
export function generateRes(options={}) {
|
||||
|
||||
Reference in New Issue
Block a user