|
|
|
|
@ -8,7 +8,8 @@ it('should format duration properly', () => {
|
|
|
|
|
expect(formatDuration({ seconds: 101.5 })).toBe('00:01:41.500');
|
|
|
|
|
expect(formatDuration({ seconds: 101.5, shorten: true })).toBe('1:41.500');
|
|
|
|
|
expect(formatDuration({ seconds: 10000 })).toBe('02:46:40.000');
|
|
|
|
|
expect(formatDuration({ seconds: 10000, shorten: true })).toBe('2:46:40.000');
|
|
|
|
|
expect(formatDuration({ seconds: 10000, shorten: true })).toBe('2:46:40');
|
|
|
|
|
expect(formatDuration({ seconds: 10000.5, shorten: true })).toBe('2:46:40.500');
|
|
|
|
|
expect(formatDuration({ seconds: 101.5, showMs: false })).toBe('00:01:41');
|
|
|
|
|
expect(formatDuration({ seconds: 101.5, showMs: false, shorten: true })).toBe('1:41');
|
|
|
|
|
});
|
|
|
|
|
|