Files
persionalBrand/apps/design-lab/test/render.test.mjs
T

12 lines
386 B
JavaScript

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