diff --git a/test/knHuelleQuelltext.test.js b/test/knHuelleQuelltext.test.js index 706cf8d..893f2d5 100644 --- a/test/knHuelleQuelltext.test.js +++ b/test/knHuelleQuelltext.test.js @@ -14,3 +14,9 @@ test('P1-Module: kein innerHTML, nur relative Importe, keine Verweise auf entfer for (const m of q.matchAll(/from '([^']+)'/g)) assert.match(m[1], /^\.\//, `${f}: nur relative Importe`) } }) + +test('Dateiübersicht P1 ist vollständig vorhanden', () => { + const soll = [...P1, 'tokens.css', 'basis.css', 'huelle.css', 'dashboard.html', 'manifest.webmanifest', 'ansichten.css', 'funktionen.css', 'module.css', + ...['website', 'funktionen', 'chat', 'vertraege', 'passwort', 'gutschrift', 'wechsel', 'bestellen'].map((n) => `ansicht-${n}.js`)] + for (const f of soll) assert.ok(existsSync(pfad(f)), f) +})