refine test
parent
1f78a3b099
commit
e1a5cbce2e
|
@ -12,7 +12,7 @@ describe('Utils:formatTime', () => {
|
||||||
})
|
})
|
||||||
|
|
||||||
it('less two minute', () => {
|
it('less two minute', () => {
|
||||||
expect(formatTime(+new Date() - 60 * 2 * 1000)).toBe('2分钟前')
|
expect(formatTime(+new Date() - 60 * 2 * 1000 + 5)).toBe('2分钟前')
|
||||||
})
|
})
|
||||||
|
|
||||||
it('less two hour', () => {
|
it('less two hour', () => {
|
||||||
|
|
Loading…
Reference in New Issue