fix(tests): lint, expects, correct downscoring for Gold

This commit is contained in:
Kalista Payne
2026-03-19 19:02:56 -05:00
parent 2204885833
commit 6343f32f79
3 changed files with 6 additions and 5 deletions
+2 -2
View File
@@ -147,9 +147,9 @@ function _addPoints (user, task, stats, direction, delta) {
user._tmp.streakBonus = afterStreak - gpMod;
}
stats.gp += Math.ceil(afterStreak);
stats.gp += (direction === 'down' ? Math.floor(afterStreak) : Math.ceil(afterStreak));
} else {
stats.gp += Math.ceil(gpMod);
stats.gp += (direction === 'down' ? Math.floor(gpMod) : Math.ceil(gpMod));
}
}