From 97ae10d316ca9834e8ac07e76a34cc101e64d35b Mon Sep 17 00:00:00 2001 From: zk Date: Mon, 18 May 2026 17:48:39 +0100 Subject: [PATCH] fix: server, fix test --- .../import-types/common/batch-manual/parser.test.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/typescript/server/src/lib/score-import/import-types/common/batch-manual/parser.test.ts b/typescript/server/src/lib/score-import/import-types/common/batch-manual/parser.test.ts index 9a31198f4..3b8778486 100644 --- a/typescript/server/src/lib/score-import/import-types/common/batch-manual/parser.test.ts +++ b/typescript/server/src/lib/score-import/import-types/common/batch-manual/parser.test.ts @@ -110,7 +110,7 @@ describe("#ParserFn", () => { }); it("No Playtype - game group without playtype is not a V3 game", () => { - expectThrowsFatal( + expectThrowsFatalMatch( () => ParserFn( { @@ -121,10 +121,7 @@ describe("#ParserFn", () => { false, log, ), - new ScoreImportFatalError( - 400, - `Invalid game 'iidx' - when meta.playtype is omitted, meta.game must be a canonical enabled game string (for example iidx-sp).`, - ), + mockErr("Invalid game 'iidx'. It must be one of"), ); });