mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-06 13:58:05 +03:00
Fix TS Compile error in tests
This commit is contained in:
@@ -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: {},
|
||||
|
||||
Reference in New Issue
Block a user