mirror of
https://github.com/navidrome/navidrome.git
synced 2026-11-20 17:09:54 +01:00
Reformat code with Prettier's new rules.
This commit is contained in:
parent
735d670a5b
commit
86757663d6
82 changed files with 236 additions and 222 deletions
|
|
@ -25,7 +25,7 @@ describe('formatDuration', () => {
|
|||
it('formats days, hours and minutes', () => {
|
||||
expect(formatDuration(hour + minute + 1)).toEqual('01:01:01')
|
||||
expect(formatDuration(3 * day + 3 * hour + 7 * minute)).toEqual(
|
||||
'3:03:07:00'
|
||||
'3:03:07:00',
|
||||
)
|
||||
expect(formatDuration(day)).toEqual('1:00:00:00')
|
||||
expect(formatDuration(day + minute + 0.6)).toEqual('1:00:01:01')
|
||||
|
|
|
|||
|
|
@ -15,6 +15,6 @@ export const intersperse = (arr, sep) => {
|
|||
function (xs, x, i) {
|
||||
return xs.concat([sep, x])
|
||||
},
|
||||
[arr[0]]
|
||||
[arr[0]],
|
||||
)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ export const baseUrl = (path) => {
|
|||
export const shareUrl = (id) => {
|
||||
const url = new URL(
|
||||
baseUrl(config.publicBaseUrl + '/' + id),
|
||||
window.location.href
|
||||
window.location.href,
|
||||
)
|
||||
return url.href
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue