mirror of
https://github.com/navidrome/navidrome.git
synced 2026-08-31 07:30:32 +00:00
lint(ui): run prettier
This commit is contained in:
parent
ca1e9a0f34
commit
c3d3d70595
@ -209,7 +209,7 @@ describe('SharePlayer', () => {
|
||||
expect(createdLinks[0].href).toContain('/share/d/share-1')
|
||||
expect(createdLinks[0].download).toBe('My Playlist.zip')
|
||||
expect(createdLinks[0].click).toHaveBeenCalled()
|
||||
expect(createdLinks[0]).not.toBeInTheDocument()
|
||||
expect(createdLinks[0]).not.toBeInTheDocument()
|
||||
})
|
||||
|
||||
it('closes the dialog after clicking "All Tracks"', async () => {
|
||||
@ -287,7 +287,7 @@ describe('SharePlayer', () => {
|
||||
expect(createdLinks).toHaveLength(1)
|
||||
expect(createdLinks[0].href).toContain('download=true')
|
||||
expect(createdLinks[0].click).toHaveBeenCalled()
|
||||
expect(createdLinks[0]).not.toBeInTheDocument()
|
||||
expect(createdLinks[0]).not.toBeInTheDocument()
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
@ -37,7 +37,9 @@ describe('toDownloadUrl', () => {
|
||||
})
|
||||
|
||||
it('preserves existing query parameters', () => {
|
||||
const result = toDownloadUrl('https://example.com/share/s/abc123?format=mp3')
|
||||
const result = toDownloadUrl(
|
||||
'https://example.com/share/s/abc123?format=mp3',
|
||||
)
|
||||
const url = new URL(result)
|
||||
expect(url.searchParams.get('format')).toBe('mp3')
|
||||
expect(url.searchParams.get('download')).toBe('true')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user