import { test } from 'node:test' import assert from 'node:assert/strict' import { existsSync, readFileSync } from 'node:fs' const { config } = await import('../server/config.js') const root = (rel) => new URL(`../${rel}`, import.meta.url) test('AVV Website-Analyse: öffentliche Seite existiert, trägt Fassung und Entwurfshinweis, keine internen Kommentare', () => { const file = root('public/rechtliches/avv-website-analyse.html') assert.ok(existsSync(file)) const html = readFileSync(file, 'utf8') assert.ok(html.includes(`Fassung ${config.analyse.avvVersion}`), 'avvVersion aus der Konfiguration steht auf der Seite') assert.match(html, /Entwurf – vor Verwendung anwaltlich prüfen lassen/) assert.doesNotMatch(html, /