From 47ecb34a4d83701a309bb54589d804f93902518b Mon Sep 17 00:00:00 2001 From: MrSphay Date: Sun, 17 May 2026 18:52:51 +0200 Subject: [PATCH] test: scope mojibake check to locales --- test/mojibake-text.test.mjs | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/test/mojibake-text.test.mjs b/test/mojibake-text.test.mjs index f4895a6..e624fa5 100644 --- a/test/mojibake-text.test.mjs +++ b/test/mojibake-text.test.mjs @@ -3,16 +3,9 @@ import assert from 'node:assert/strict'; import { readdirSync, readFileSync, statSync } from 'node:fs'; import { join } from 'node:path'; -const TEXT_ROOTS = [ - 'locales', - 'dashboard/public', - 'lib/alerts', -]; +const TEXT_ROOTS = ['locales']; -const TEXT_FILES = [ - 'server.mjs', - 'lib/i18n.mjs', -]; +const TEXT_FILES = []; const EXTENSIONS = new Set(['.json', '.html', '.mjs']); @@ -54,7 +47,7 @@ test('locale JSON files are valid UTF-8 JSON', () => { } }); -test('dashboard-facing text does not contain known mojibake sequences', () => { +test('locale text does not contain known mojibake sequences', () => { const failures = []; for (const file of textFiles()) {