diff --git a/web/index.html b/web/index.html index 792ce73..d40a323 100644 --- a/web/index.html +++ b/web/index.html @@ -11,16 +11,19 @@ diff --git a/web/src/branding.test.ts b/web/src/branding.test.ts index 76e594a..b9ca7a2 100644 --- a/web/src/branding.test.ts +++ b/web/src/branding.test.ts @@ -1,7 +1,9 @@ import { readFileSync } from 'node:fs'; import { resolve } from 'node:path'; +import { runInNewContext } from 'node:vm'; import { describe, expect, it } from 'vitest'; import indexHtml from '../index.html?raw'; +import { initialTheme } from './shell/theme'; const publicFile = (name: string) => readFileSync(resolve(import.meta.dirname, '../public', name)); @@ -47,3 +49,54 @@ describe('Icon-Dateien', () => { expect(pngInfo(publicFile('apple-touch-icon.png'))).toEqual({ width: 180, height: 180, colorType: 2 }); }); }); + +describe('Inline-Skript für Hell/Dunkel in index.html', () => { + const script = /