feat: openui report library
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.7
parent
d8caa8e6db
commit
396b0edd9e
@@ -0,0 +1,11 @@
|
||||
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);
|
||||
});
|
||||
Reference in New Issue
Block a user