Skip to content

The open alternative to Salesforce, designed for AI.

Fix broken unit test after translation was added (#14329)

Félix Malfait4c4811dca7f0
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 98887b4f73a..428df197b9b 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', () => {