1
0
mirror of https://github.com/SomboChea/ui synced 2026-01-18 09:06:14 +07:00

refactor: replaced date fns with dayjs (#345)

This commit is contained in:
Priscila Oliveira
2019-12-06 17:58:24 +01:00
committed by Juan Picado @jotadeveloper
parent 474e9e18de
commit 501845b5f8
9 changed files with 28 additions and 18 deletions

View File

@@ -71,7 +71,7 @@ describe('formatDateDistance', (): void => {
const date2 = dateTwoMonthsAgo();
// FIXME: we need to review this expect, fails every x time.
// expect(formatDateDistance(date1)).toEqual('about 2 months');
expect(formatDateDistance(date2)).toEqual('2 months');
expect(formatDateDistance(date2)).toEqual('2 months ago');
});
});