From e1a5cbce2e9eeb2158efad4a8ff123f23939f2cf Mon Sep 17 00:00:00 2001 From: Pan Date: Sun, 26 Aug 2018 11:16:05 +0800 Subject: [PATCH] refine test --- test/unit/utils/formatTime.spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/utils/formatTime.spec.js b/test/unit/utils/formatTime.spec.js index b59a7a9..ed2a084 100644 --- a/test/unit/utils/formatTime.spec.js +++ b/test/unit/utils/formatTime.spec.js @@ -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', () => {