From 5fc4e08ec6561088948cb655b37bbb75d48195db Mon Sep 17 00:00:00 2001 From: le king fu Date: Thu, 5 Nov 2026 21:29:49 -0500 Subject: [PATCH] test: pin the words of the malformed-format refusal in both locales (#520) Refs #520 Co-Authored-By: Claude Opus 5.5 --- src/services/dataExportService.test.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/services/dataExportService.test.ts b/src/services/dataExportService.test.ts index 1394a5b..50300fa 100644 --- a/src/services/dataExportService.test.ts +++ b/src/services/dataExportService.test.ts @@ -1687,6 +1687,15 @@ describe("the texts of a restore with the budget exist in both languages (#520)" } }); + it("carries the refusal of a malformed format number in the words Max chose (PR #533, 2026-11-05)", () => { + expect(fr.settings.dataManagement.import.errors.invalidFormatVersion).toBe( + "Ce fichier ne peut pas être importé : son numéro de format est invalide. Rien n'a été modifié." + ); + expect(en.settings.dataManagement.import.errors.invalidFormatVersion).toBe( + "This file cannot be imported: its format number is invalid. Nothing has been modified." + ); + }); + it("the confirmation names the budget, the budget templates and the adjustments among what is deleted", () => { for (const key of ["willDeleteCategories", "willDeleteAll"] as const) { expect(fr.settings.dataManagement.import[key], `fr.${key}`).toMatch(