import test from "node:test"; import assert from "node:assert/strict"; import { BrinewakeSpecimen } from "./components/brinewake-specimen.tsx"; import { otherEntries } from "./components/other-index.tsx"; import { Shell } from "./components/shell.tsx"; test("Brinewake uses the established full-width type specimen shell", async () => { const html = ( await ( ) ).toString(); assert.ok(html.includes('class="page-container page-container-wide"')); assert.ok(html.includes("

Brinewake

")); assert.ok(html.includes("Designed with Co and Letta Code")); assert.ok(html.includes("Brinewake · Co / Letta Code · 2026")); assert.doesNotMatch(html, /Astra|0[1-5] \/ /); assert.ok(html.includes('id="brine-text"')); assert.ok(html.includes('id="brine-size"')); assert.ok(html.includes('aria-live="polite"')); assert.ok(html.includes("No accented letters or additional scripts yet.")); for (const file of [ "brinewake-regular.ttf", "brinewake-regular.woff2", "brinewake-source.py", "brinewake-license.txt", ]) { assert.ok(html.includes(`/public/fonts/${file}`)); } assert.ok(html.includes("Notes from the proofs")); assert.ok(!html.includes('name="robots"')); }); test("Other keeps existing fonts alongside the new original serif", () => { for (const href of ["/type", "/type/processional", "/type/brinewake"]) { assert.equal(otherEntries.filter((entry) => entry.href === href).length, 1); } });