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