Round song duration (instead of truncating it). Relates to #1926

This commit is contained in:
Deluan
2022-10-10 21:28:58 -04:00
parent 62e7492357
commit af5c2b5a42
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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', () => {