12 lines
541 B
TypeScript
12 lines
541 B
TypeScript
import test from "node:test";
|
|
import assert from "node:assert/strict";
|
|
const { library, reportPromptOptions } = await import("../lib/report-ui.ts");
|
|
|
|
test("the prompt advertises every component and the root", () => {
|
|
const p = library.prompt(reportPromptOptions);
|
|
for (const n of ["Report", "Headline", "VerdictBlock", "MetricGrid", "Findings", "OptionTable",
|
|
"StepList", "SqlBlock", "ScoreBar", "Callout"]) assert.ok(p.includes(n), `missing ${n}`);
|
|
assert.match(p, /root/i);
|
|
assert.match(p, /never invent/i);
|
|
});
|