Browse Source

Fix tests

tags/7.5
Pascal Mugnier 5 years ago
parent
commit
ebb39d76ca

+ 3
- 3
server/sonar-web/src/main/js/apps/background-tasks/__tests__/background-tasks-test.js View File

@@ -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', () => {

Loading…
Cancel
Save