mirror of
https://github.com/twentyhq/twenty.git
synced 2024-12-25 13:02:15 +03:00
Fixed format date unit test (#6469)
With the introduction of the new function formatToHumanReadableTime, we had to modify a unit test that wasn't using a UTC date as input data.
This commit is contained in:
parent
7fe00b163e
commit
db2cb2bc2d
@ -22,8 +22,9 @@ describe('formatToHumanReadableDay', () => {
|
||||
|
||||
describe('formatToHumanReadableTime', () => {
|
||||
it('should format the date to a human-readable time', () => {
|
||||
const date = new Date('2022-01-01T12:30:00');
|
||||
const date = new Date('2022-01-01T12:30:00Z');
|
||||
const result = formatToHumanReadableTime(date, 'UTC');
|
||||
|
||||
// it seems when running locally on MacOS the space is not the same
|
||||
expect(['12:30 PM', '12:30 PM']).toContain(result);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user