adding en-US to toLocaleString

This commit is contained in:
Mihai 2023-08-03 21:39:07 +03:00
parent ad124d1a7c
commit f92513fb7e

View file

@ -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 })
);
});
});