Fix friendly date flaky test

This commit is contained in:
Elias Nahum 2022-03-06 06:11:47 -03:00
parent 2cbbf89d39
commit 7a61c7f41f
No known key found for this signature in database
GPG key ID: E038DB71E0B61702

View file

@ -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}/>,
);