🐛(frontend) fix flaky test

Depend the month the test could fail if the current
month has 30 or 31 days, so change 30 to 35 to be sure
that it will always be at least 1 month ago.
This commit is contained in:
Anthony LC
2025-11-04 09:36:25 +01:00
parent 91217b3c4f
commit d5c3f248a5

View File

@@ -44,7 +44,7 @@ describe('DocsGridItemDate', () => {
rendered: '5 days ago',
},
{
updated_at: DateTime.now().minus({ days: 30 }).toISO(),
updated_at: DateTime.now().minus({ days: 35 }).toISO(),
rendered: '1 month ago',
},
].forEach(({ updated_at, rendered }) => {