import assert from "node:assert/strict";
import { test } from "node:test";
import { openWebReview, webReviewDocument } from "./web-review.js";
test("embedded web review client is valid JavaScript", () => {
const page = webReviewDocument();
const start = page.indexOf("", start);
assert.ok(start >= 0 && end > start, "review document must contain a client script");
assert.doesNotThrow(() => new Function(page.slice(start + "