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:
committed by
Juan Picado @jotadeveloper
parent
474e9e18de
commit
501845b5f8
@@ -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');
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user