Rechtliches: Entwurf AVV Website-Analyse aus public/ entfernen (bis zur geprueften Fassung)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ClaudeandClaude Opus 5.5 committed 2026-10-01 15:50:40 +00:00
1 parent c0c1a3d7a9
commit 9449542686
2 files changed
+3 -182

No files matched your search

+3 -14
View File
@@ -5,21 +5,10 @@ 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, /<!--/)
assert.match(html, /<h2>12\. Haftung/)
})
test('AVV-Link im Portal zeigt auf eine vorhandene Datei unter public/', () => {
test('AVV Website-Analyse: Entwurf ist nicht öffentlich (geprüfte Fassung kommt mit der Rechtsrunde)', () => {
assert.ok(!existsSync(root('public/rechtliches/avv-website-analyse.html')))
const fn = readFileSync(root('public/funktionen.js'), 'utf8')
const url = fn.match(/const AVV_URL = '([^']+)'/)?.[1]
assert.equal(url, '/rechtliches/avv-website-analyse.html')
assert.ok(existsSync(root(`public${url}`)))
assert.equal(fn.match(/const AVV_URL = '([^']+)'/)?.[1], '/rechtliches/avv-website-analyse.html')
})
test('Portal: Dev-Modus-Hinweis an der Analyse-Kachel', () => {