feat: JSON format by space in json filter

This commit is contained in:
Jun Yang
2023-03-22 00:08:24 +08:00
parent 8037f7b4a4
commit 7b87ea82d3
3 changed files with 8 additions and 3 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ describe('TimezoneDate', () => {
})
it('should support .toLocaleTimeString()', () => {
const date = new TimezoneDate('2021-10-06T00:00:00.001+00:00', -480)
expect(date.toLocaleTimeString('en-US')).toBe('8:00:00 AM')
expect(date.toLocaleTimeString('en-US')).toMatch(/^8:00:00\sAM$/)
expect(() => date.toLocaleDateString()).not.toThrow()
})
it('should support .toLocaleDateString()', () => {