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:
@@ -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);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user