From 4c4811dca7f0858322321b657f078102da5f94f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Malfait?= Date: Fri, 5 Sep 2025 17:53:00 +0200 Subject: [PATCH] Fix broken unit test after translation was added (#14329) 1-line fix, test is wrong since Lingui translations have been corrected now --- packages/twenty-front/src/utils/__tests__/date-utils.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/twenty-front/src/utils/__tests__/date-utils.test.ts b/packages/twenty-front/src/utils/__tests__/date-utils.test.ts index 98887b4f73..428df197b9 100644 --- a/packages/twenty-front/src/utils/__tests__/date-utils.test.ts +++ b/packages/twenty-front/src/utils/__tests__/date-utils.test.ts @@ -258,7 +258,7 @@ describe('French locale tests', () => { it('should format very recent dates as "now" in French', () => { const pastDate = '2023-12-31T23:59:45.000Z'; // 15 seconds ago const result = beautifyPastDateRelativeToNow(pastDate, fr); - expect(result).toBe('now'); // Lingui translation (should be "maintenant" but test setup uses English) + expect(result).toBe('maintenant'); // French for "now" }); it('should format 30 seconds ago in French', () => {