possile fix
This commit is contained in:
parent
69ebd3d52b
commit
ad124d1a7c
1 changed files with 2 additions and 2 deletions
|
@ -13,10 +13,10 @@ describe('dateTimeHelpers', () => {
|
|||
it('should output the correct date', () => {
|
||||
const date = new Date();
|
||||
expect(formatTimestamp(date)).toBe(
|
||||
date.toLocaleString([], { hour12: false })
|
||||
date.toLocaleString([], { hour12: true })
|
||||
);
|
||||
expect(formatTimestamp(date.getTime())).toBe(
|
||||
date.toLocaleString([], { hour12: false })
|
||||
date.toLocaleString([], { hour12: true })
|
||||
);
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue