perf: update

This commit is contained in:
花裤衩
2020-03-20 19:56:46 +08:00
parent d54cd25de2
commit 1877997fb6
2 changed files with 15 additions and 4 deletions

View File

@@ -4,6 +4,11 @@ describe('Utils:parseTime', () => {
it('timestamp', () => {
expect(parseTime(d)).toBe('2018-07-13 17:54:01')
})
it('timestamp string', () => {
expect(parseTime((d + ''))).toBe('2018-07-13 17:54:01')
})
it('ten digits timestamp', () => {
expect(parseTime((d / 1000).toFixed(0))).toBe('2018-07-13 17:54:01')
})