From: Pascal Mugnier Date: Fri, 20 Jul 2018 10:30:48 +0000 (+0200) Subject: Fix tests X-Git-Tag: 7.5~754 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ebb39d76caa9d116d97ca53470c97dd9558bd2c2;p=sonarqube.git Fix tests --- diff --git a/server/sonar-web/src/main/js/apps/background-tasks/__tests__/background-tasks-test.js b/server/sonar-web/src/main/js/apps/background-tasks/__tests__/background-tasks-test.js index d24841cea10..2e10882d6b8 100644 --- a/server/sonar-web/src/main/js/apps/background-tasks/__tests__/background-tasks-test.js +++ b/server/sonar-web/src/main/js/apps/background-tasks/__tests__/background-tasks-test.js @@ -180,15 +180,15 @@ describe('Helpers', () => { }); it('should format 1s 0ms', () => { - expect(formatDuration(1000)).toBe('1s 0ms'); + expect(formatDuration(1000)).toBe('1.0s'); }); it('should format 1s 1ms', () => { - expect(formatDuration(1001)).toBe('1s 1ms'); + expect(formatDuration(1001)).toBe('1.1s'); }); it('should format 1s 501ms', () => { - expect(formatDuration(1501)).toBe('1s 501ms'); + expect(formatDuration(1501)).toBe('1.501s'); }); it('should format 59s', () => {