18 lines
551 B
TypeScript
18 lines
551 B
TypeScript
// Module 2 Expansion Drop: Frothing Berserker. Matches expansion/README.md.
|
|
import { expect, test } from "vitest";
|
|
import { newGame } from "../src/harness";
|
|
|
|
test("test_02x_frothing_counts_each_damage", () => {
|
|
const g = newGame();
|
|
const f = g.summon("Frothing Berserker", 0);
|
|
g.summon("Test Filler", 0);
|
|
g.summon("Test Filler", 1);
|
|
const before = g.attack(f);
|
|
g.clearLog();
|
|
|
|
g.cast("Whirlwind", 0);
|
|
|
|
expect(g.attack(f)).toBe(before + 3);
|
|
expect(g.log().filter((e) => e.type === "Triggered" && e.source === f)).toHaveLength(3);
|
|
});
|