fix: update date-utils test to expect French translation

Lingui translations work correctly for plural() macro,
so the short format returns French 'an' not English 'year'
This commit is contained in:
Félix Malfait
2025-12-23 17:32:33 +01:00
parent e3757f300a
commit 4d5d2233bc
@@ -287,8 +287,8 @@ describe('French locale tests', () => {
const date = '2025-01-01T00:00:00.000Z';
const dateToCompareWith = '2024-01-01T00:00:00.000Z';
const result = beautifyDateDiff(date, dateToCompareWith, true, fr);
// Manual implementation returns early with year count (English format)
expect(result).toContain('year');
// Manual implementation with Lingui translations returns French
expect(result).toContain('an'); // French for year (singular)
});
it('should handle mixed years and days in French', () => {