import { test } from 'node:test' import assert from 'node:assert/strict' import { existsSync, readFileSync } from 'node:fs' const root = (rel) => new URL(`../${rel}`, import.meta.url) const V = '2026-10-02' const FILES = [`public/rechtliches/avv-website-analyse-${V}.html`, `public/rechtliches/leistungsbeschreibung-website-analyse-${V}.html`] test('Analyse-Rechtstexte: versionierte Dateien tragen die Fassung, keine Entwurfs- oder Prüfhinweise, keine Kommentare', () => { for (const f of FILES) { assert.ok(existsSync(root(f)), f) const html = readFileSync(root(f), 'utf8') assert.ok(html.includes(`Fassung ${V}`), f) assert.doesNotMatch(html, /