refactor: use English IDs for desert card effects

Replace Chinese card names with English IDs in the desert card effect
CSV to ensure consistency with the card identifiers. Update tests to
verify the data import using the new English identifiers.
This commit is contained in:
2026-04-20 00:23:41 +08:00
parent dda8f4cfe9
commit 08c6a67d16
2 changed files with 35 additions and 30 deletions
@@ -1,8 +1,13 @@
import { describe, it, expect } from "vitest";
import data from "@/samples/slay-the-spire-like/data";
import { CardData } from "@/samples/slay-the-spire-like";
describe("data import", () => {
it("should import properly", () => {
expect(data.desert.getEffects).toBeDefined();
expect(
data.desert.getCards().find((c: CardData) => c.id === "crossbow")?.effects
?.length,
).toBe(2);
});
});