Files
sql-server-query-ai/tests/report-ui.test.ts
T
2026-09-22 07:54:52 +03:00

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);
});