aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/background-tasks
diff options
context:
space:
mode:
authorPascal Mugnier <pascal.mugnier@sonarsource.com>2018-07-20 12:30:48 +0200
committerSonarTech <sonartech@sonarsource.com>2018-07-20 20:21:19 +0200
commitebb39d76caa9d116d97ca53470c97dd9558bd2c2 (patch)
tree21656fb34da003bb8e2d049e17ecffaa8d0db38a /server/sonar-web/src/main/js/apps/background-tasks
parent0dcc191a7a397c4460aade86e85d24ffe3ca54c6 (diff)
downloadsonarqube-ebb39d76caa9d116d97ca53470c97dd9558bd2c2.tar.gz
sonarqube-ebb39d76caa9d116d97ca53470c97dd9558bd2c2.zip
Fix tests
Diffstat (limited to 'server/sonar-web/src/main/js/apps/background-tasks')
-rw-r--r--server/sonar-web/src/main/js/apps/background-tasks/__tests__/background-tasks-test.js6
1 files changed, 3 insertions, 3 deletions
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', () => {