fix(admin): cast clothing-set hard-fail mock return type
Co-authored-by: Cursor <[email protected]>
This commit is contained in:
1 parent
2194aa1239
commit
811cf5719b
1 file changed
+2
-2
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user