mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 07:07:35 +01:00
fix test lint
This commit is contained in:
@@ -9,8 +9,8 @@ describe('shared.fns.autoAllocate', () => {
|
||||
beforeEach(() => {
|
||||
user = generateUser();
|
||||
// necessary to test task training reset behavior
|
||||
user.stats.toObject = function () {
|
||||
let obj = JSON.parse(JSON.stringify(this));
|
||||
user.stats.toObject = function toObject () {
|
||||
const obj = JSON.parse(JSON.stringify(this));
|
||||
|
||||
return obj;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user