test: cover bilingual static exports
This commit is contained in:
@@ -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/);
|
||||
|
||||
Reference in New Issue
Block a user