Fix TS Compile error in tests

This commit is contained in:
zkldi
2021-11-30 16:47:30 +00:00
parent 819b855c63
commit 5cdd7cc63f
2 changed files with 9 additions and 3 deletions
@@ -1,5 +1,5 @@
import { RecalcSessions } from "utils/calculations/recalc-sessions";
if (require.main === module) {
RecalcSessions();
RecalcSessions().then(() => process.exit(0));
}
@@ -127,7 +127,10 @@ t.test("GET /api/v1/users/:userID/games/:game/:playtype/history", (t) => {
playtype: "SP",
// @ts-expect-error Too lazy to sort this one out...
rankings: {
BPI: 5,
BPI: {
ranking: 2,
outOf: 4,
},
},
playcount: 100,
classes: {},
@@ -165,7 +168,10 @@ t.test("GET /api/v1/users/:userID/games/:game/:playtype/history", (t) => {
},
{
rankings: {
BPI: 5,
BPI: {
ranking: 2,
outOf: 4,
},
},
playcount: 100,
classes: {},