adding en-US to toLocaleString
This commit is contained in:
parent
ad124d1a7c
commit
f92513fb7e
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: true })
|
||||
date.toLocaleString('en-US', { hour12: true })
|
||||
);
|
||||
expect(formatTimestamp(date.getTime())).toBe(
|
||||
date.toLocaleString([], { hour12: true })
|
||||
date.toLocaleString('en-US', { hour12: true })
|
||||
);
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue