Files
healer-man/src/ui/TimedEffectStrip.test.ts
T
2026-08-30 14:16:56 -04:00

16 lines
606 B
TypeScript

import { describe, expect, it } from "vitest";
import { timedEffectDescription } from "./statusEffectInspection";
describe("timed effect tooltip copy", () => {
it("uses the source ability description when one is available", () => {
expect(timedEffectDescription("hot", " Restores health over 12 sec. ")).toBe(
"Restores health over 12 sec.",
);
});
it("describes periodic healing and damage when source copy is unavailable", () => {
expect(timedEffectDescription("hot")).toContain("Restores health");
expect(timedEffectDescription("dot")).toContain("Deals damage");
});
});