import assert from "node:assert/strict"; import test from "node:test"; import { renderDesignSpec } from "@personal-brand/design-spec"; import { sampleSpec } from "../src/samples.ts"; test("sample renders a design preview", () => { const html = renderDesignSpec(sampleSpec); assert.match(html, /data-template-section="contact"/); assert.match(html, /data-action="contact"/); });