test: cover bilingual static exports

This commit is contained in:
2026-09-08 19:22:07 +03:30
parent 273f92a3c3
commit d738263ca1
2 changed files with 36 additions and 1 deletions

View File

@@ -16,7 +16,7 @@ test('the footer renders the IsometricFooter scene instead of preloading PNG art
const footerSection = await readFile('src/components/FooterSection.tsx', 'utf8');
const loader = await readFile('src/components/SiteLoader.tsx', 'utf8');
assert.match(footerSection, /<IsometricFooter\s*\/>/);
assert.match(footerSection, /<IsometricFooter locale=\{locale\}\s*\/>/);
assert.doesNotMatch(footerSection, /next\/image/);
assert.doesNotMatch(footerSection, /footer-background.*\.png/);
assert.doesNotMatch(loader, /footer-background.*\.png/);