2026-04-19 23:28:56 +08:00
|
|
|
import { describe, it, expect } from "vitest";
|
|
|
|
|
import data from "@/samples/slay-the-spire-like/data";
|
2026-04-20 00:23:41 +08:00
|
|
|
import { CardData } from "@/samples/slay-the-spire-like";
|
2026-04-12 21:04:38 +08:00
|
|
|
|
2026-04-19 23:28:56 +08:00
|
|
|
describe("data import", () => {
|
|
|
|
|
it("should import properly", () => {
|
|
|
|
|
expect(data.desert.getEffects).toBeDefined();
|
2026-04-20 00:23:41 +08:00
|
|
|
expect(
|
|
|
|
|
data.desert.getCards().find((c: CardData) => c.id === "crossbow")?.effects
|
|
|
|
|
?.length,
|
|
|
|
|
).toBe(2);
|
2026-04-19 23:28:56 +08:00
|
|
|
});
|
2026-04-15 16:28:18 +08:00
|
|
|
});
|