From 7f90ca091b34d812466026a328ffdef5e3aa42a8 Mon Sep 17 00:00:00 2001 From: Gyoo Date: Tue, 27 Aug 2024 09:42:34 +0000 Subject: [PATCH] fix: non compiling tests --- server/src/game-implementations/games/arcaea.test.ts | 7 +++---- server/src/game-implementations/games/wacca.test.ts | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/server/src/game-implementations/games/arcaea.test.ts b/server/src/game-implementations/games/arcaea.test.ts index 58421ad8a5..a38bf8aea8 100644 --- a/server/src/game-implementations/games/arcaea.test.ts +++ b/server/src/game-implementations/games/arcaea.test.ts @@ -8,7 +8,7 @@ import t from "tap"; import { dmf, mkMockPB, mkMockScore } from "test-utils/misc"; import ResetDBState from "test-utils/resets"; import { TestSnapshot } from "test-utils/single-process-snapshot"; -import { TestingArcaeaSheriruthFTR } from "test-utils/test-data"; +import {TestingArcaeaSheriruthFTR, TestingWaccaPupaExp} from "test-utils/test-data"; import type { ProvidedMetrics, ScoreData, ScoreDocument, ChartDocument } from "tachi-common"; import type { DeepPartial } from "utils/types"; @@ -169,9 +169,8 @@ t.test("Arcaea Implementation", (t) => { t.test("Score Validations", (t) => { const f = ( - s: DeepPartial>, - chart: ChartDocument<"arcaea:Touch"> = TestingArcaeaSheriruthFTR - ) => RunValidators(ARCAEA_IMPL.scoreValidators, dmf(mockScore, s), chart); + s: DeepPartial> + ) => RunValidators(ARCAEA_IMPL.scoreValidators, dmf(mockScore, s), TestingArcaeaSheriruthFTR); t.strictSame( f({ diff --git a/server/src/game-implementations/games/wacca.test.ts b/server/src/game-implementations/games/wacca.test.ts index 3817bec557..bc2853f658 100644 --- a/server/src/game-implementations/games/wacca.test.ts +++ b/server/src/game-implementations/games/wacca.test.ts @@ -172,7 +172,7 @@ t.test("WACCA Implementation", (t) => { t.test("Score Validations", (t) => { const f = (s: DeepPartial>) => - RunValidators(WACCA_IMPL.scoreValidators, dmf(mockScore, s)); + RunValidators(WACCA_IMPL.scoreValidators, dmf(mockScore, s), TestingWaccaPupaExp); t.strictSame(f({ scoreData: { lamp: "ALL MARVELOUS", score: 1_000_000 } }), undefined); t.strictSame(f({ scoreData: { lamp: "FULL COMBO", judgements: { miss: 0 } } }), undefined);