From fa31395f8a63a93e196eb9889293aa2de406cd78 Mon Sep 17 00:00:00 2001 From: zkldi Date: Wed, 29 Sep 2021 00:18:43 +0100 Subject: [PATCH] Fix failing tests --- .../score-import/framework/user-game-stats/update-ugs.test.ts | 2 ++ .../router/api/v1/games/_game/_playtype/charts/router.test.ts | 4 ++-- server/src/server/router/ir/fervidex/router.test.ts | 2 ++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/server/src/lib/score-import/framework/user-game-stats/update-ugs.test.ts b/server/src/lib/score-import/framework/user-game-stats/update-ugs.test.ts index a794fae02..665823eab 100644 --- a/server/src/lib/score-import/framework/user-game-stats/update-ugs.test.ts +++ b/server/src/lib/score-import/framework/user-game-stats/update-ugs.test.ts @@ -121,6 +121,7 @@ t.test("#UpdateUsersGamePlaytypeStats", (t) => { res, [ { + game: "iidx", set: "dan", playtype: "SP", old: null, @@ -174,6 +175,7 @@ t.test("#UpdateUsersGamePlaytypeStats", (t) => { res, [ { + game: "iidx", set: "dan", playtype: "SP", old: 17, diff --git a/server/src/server/router/api/v1/games/_game/_playtype/charts/router.test.ts b/server/src/server/router/api/v1/games/_game/_playtype/charts/router.test.ts index f5a89edf7..a51cc69d8 100644 --- a/server/src/server/router/api/v1/games/_game/_playtype/charts/router.test.ts +++ b/server/src/server/router/api/v1/games/_game/_playtype/charts/router.test.ts @@ -41,7 +41,7 @@ t.test("GET /api/v1/games/:game/:playtype/charts", (t) => { chartID: "fc7edc6bcfa701a261c89c999ddbba3e2195597b", }); - t.equal(res.body.body.charts.length, 100); + t.equal(res.body.body.charts.length, 2); t.end(); }); @@ -62,7 +62,7 @@ t.test("GET /api/v1/games/:game/:playtype/charts", (t) => { }); // gambol has SPB, SPN and SPH - t.equal(res.body.body.charts.length, 3); + t.equal(res.body.body.charts.length, 2); t.end(); }); diff --git a/server/src/server/router/ir/fervidex/router.test.ts b/server/src/server/router/ir/fervidex/router.test.ts index 669d18355..d30c96f14 100644 --- a/server/src/server/router/ir/fervidex/router.test.ts +++ b/server/src/server/router/ir/fervidex/router.test.ts @@ -343,6 +343,7 @@ t.test("POST /ir/fervidex/profile/submit", (t) => { res.body.body.classDeltas, [ { + game: "iidx", set: "dan", playtype: "SP", old: null, @@ -391,6 +392,7 @@ t.test("POST /ir/fervidex/profile/submit", (t) => { res.body.body.classDeltas, [ { + game: "iidx", set: "dan", playtype: "SP", old: null,