test(desktop): account for localized restart status strings

This commit is contained in:
winewill committed 2026-11-05 13:42:51 +08:00
1 parent 772d3714c6
commit 60cd68bf3a
1 file changed
+2 -1
+2 -1
View File
@@ -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}')
})