Files
systemic-game-design-course/course/01-handles/expansion/tests/ts/test_01x.test.ts
T
2026-10-29 00:17:31 +01:00

16 lines
512 B
TypeScript

// Module 1 Expansion Drop: playing a card from hand. Matches expansion/README.md.
import { expect, test } from "vitest";
import { newGame } from "../src/harness";
test("test_01x_play_assigns_order_on_entry", () => {
const g = newGame();
const h = g.addToHand("Test Filler", 0);
const s = g.summon("Test Filler", 0);
g.play(h);
expect(g.zoneOf(h)).toBe("board");
expect(g.hand(0)).toEqual([]);
expect(g.board(0)).toEqual([s, h]);
expect(g.orderOfPlay(h)).toBeGreaterThan(g.orderOfPlay(s));
});