From 60cd68bf3acfb6bb8b8a2a865ea3c088936c94eb Mon Sep 17 00:00:00 2001 From: winewill Date: Thu, 5 Nov 2026 13:42:51 +0800 Subject: [PATCH] test(desktop): account for localized restart status strings --- apps/desktop/tests/installer-locales.spec.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/desktop/tests/installer-locales.spec.ts b/apps/desktop/tests/installer-locales.spec.ts index ba842d8e18..be9675184d 100644 --- a/apps/desktop/tests/installer-locales.spec.ts +++ b/apps/desktop/tests/installer-locales.spec.ts @@ -23,7 +23,8 @@ it('generates Japanese NSIS strings from the same files that select packaged lan expect(source).toContain('LangString INSTALLER_INSTALL ${LANG_JAPANESE} "今すぐインストール"') expect(source).toContain('LangString INSTALLER_NATIVE_PROGRESS ${LANG_JAPANESE} "インストールを準備しています… %d%%"') expect(source).toContain('!ifdef LANG_JAPANESE\n') - expect(source.match(/^LangString /gmu)).toHaveLength(248) + expect(source.match(/^LangString INSTALLER_UPDATE_WAIT /gmu)).toHaveLength(8) + expect(source.match(/^LangString /gmu)).toHaveLength(256) const japanese = locales.filter(locale => locale.id === 'ja_JP') expect(renderInstallerStrings(japanese)).not.toContain('${LANG_ENGLISH}') })