Updated tests with localization
Sonarqube Scanner / Prepare environment (push) Successful in 9s
Sonarqube Scanner / Build and test (push) Successful in 25s
Sonarqube Scanner / SonarQube analysis (push) Failing after 1m16s
Sonarqube Scanner / Deploy to Server (push) Successful in 9s

This commit is contained in:
Florian Zumpe
2026-10-01 10:47:43 +02:00
parent aff88eba1b
commit 2b42507f13
7 changed files with 47 additions and 13 deletions
-4
View File
@@ -32,9 +32,5 @@ export async function localizedHtml(source) {
export async function readAppFile(relativePath) {
const source = await fs.readFile(path.join(root, relativePath), 'utf8');
if (relativePath === 'public/index.html') return localizedHtml(source);
if (relativePath.startsWith('public/js/')) {
// Static text assertions read the centralized wording; runtime tests use the real class.
return source + '\n' + await fs.readFile(path.join(root, 'public/js/texts-de.js'), 'utf8');
}
return source;
}