Skip to content

Commit d5c3f24

Browse files
committed
🐛(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.
1 parent 91217b3 commit d5c3f24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/frontend/apps/impress/src/features/docs/docs-grid/components/__tests__/DocsGridItemDate.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ describe('DocsGridItemDate', () => {
4444
rendered: '5 days ago',
4545
},
4646
{
47-
updated_at: DateTime.now().minus({ days: 30 }).toISO(),
47+
updated_at: DateTime.now().minus({ days: 35 }).toISO(),
4848
rendered: '1 month ago',
4949
},
5050
].forEach(({ updated_at, rendered }) => {

0 commit comments

Comments
 (0)