16 lines
512 B
TypeScript
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));
|
|
});
|