refine test

unit-test
Pan 2018-08-26 11:16:05 +08:00
parent 1f78a3b099
commit e1a5cbce2e
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ describe('Utils:formatTime', () => {
})
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', () => {