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