fix(admin): cast clothing-set hard-fail mock return type

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
SimoandCursor committed 2026-08-01 15:57:14 +02:00
1 parent 2194aa1239
commit 811cf5719b
1 file changed
+2 -2
+2 -2
View File
@@ -94,8 +94,8 @@ describe("importClothingSet", () => {
importSingleFigure.mockResolvedValueOnce({
ok: false,
lib: "shirt_M_x",
warnings: [] as string[],
});
warnings: [],
} as Awaited<ReturnType<typeof importSingleFigure>>);
const r = await importClothingSet({ setType: "ch", setId: 5000 });
expect(r.ok).toBe(false);
expect(r.error).toMatch(/required figure libraries failed/i);