Updated tests with localization
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user