Fix friendly date flaky test
This commit is contained in:
parent
2cbbf89d39
commit
7a61c7f41f
1 changed files with 1 additions and 1 deletions
|
|
@ -66,7 +66,7 @@ describe('Friendly Date', () => {
|
|||
expect(daysAgoMaxText.getByText('30 days ago')).toBeTruthy();
|
||||
|
||||
const monthsAgo = new Date();
|
||||
monthsAgo.setMonth(monthsAgo.getMonth() - 2);
|
||||
monthsAgo.setDate(monthsAgo.getDate() - 60);
|
||||
const monthsAgoText = renderWithIntl(
|
||||
<FriendlyDate value={monthsAgo}/>,
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in a new issue