fix test lint

This commit is contained in:
Matteo Pagliazzi
2019-10-08 20:45:38 +02:00
parent e37f4467f8
commit 85fb5f33aa
367 changed files with 6635 additions and 6080 deletions

View File

@@ -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;
};