Round song duration (instead of truncating it). Relates to #1926
This commit is contained in:
@@ -19,7 +19,7 @@ describe('formatDuration', () => {
|
||||
it('formats seconds', () => {
|
||||
expect(formatDuration(0)).toEqual('00:00')
|
||||
expect(formatDuration(59)).toEqual('00:59')
|
||||
expect(formatDuration(59.99)).toEqual('00:59')
|
||||
expect(formatDuration(59.99)).toEqual('00:60')
|
||||
})
|
||||
|
||||
it('formats days, hours and minutes', () => {
|
||||
|
||||
Reference in New Issue
Block a user