]> source.dussan.org Git - sonarqube.git/commitdiff
fix measures-test
authorStas Vilchik <vilchiks@gmail.com>
Tue, 24 Jan 2017 15:18:20 +0000 (16:18 +0100)
committerStas Vilchik <vilchiks@gmail.com>
Tue, 24 Jan 2017 15:18:20 +0000 (16:18 +0100)
server/sonar-web/src/main/js/helpers/__tests__/measures-test.js

index e1f5a348666f6d86e54e72e66768cbb6ebf43678..c02a0fb6b8c35be1840e776ed8311914c1f9fa75 100644 (file)
@@ -85,7 +85,7 @@ describe('#formatMeasure()', () => {
     expect(formatMeasure(1.3, 'PERCENT')).toBe('1.3%');
     expect(formatMeasure(1.34, 'PERCENT')).toBe('1.3%');
     expect(formatMeasure(50.89, 'PERCENT')).toBe('50.9%');
-    expect(formatMeasure(100.0, 'PERCENT')).toBe('100.0%');
+    expect(formatMeasure(100.0, 'PERCENT')).toBe('100%');
   });
 
   it('should format WORK_DUR', () => {