提交 e1a5cbce 编写于 作者: P Pan

refine test

上级 1f78a3b0
......@@ -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', () => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册