lint(ui): run prettier

This commit is contained in:
Katelyn Dickey 2026-03-12 22:38:54 -04:00
parent ca1e9a0f34
commit c3d3d70595
2 changed files with 5 additions and 3 deletions

View File

@ -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()
})
})
})

View File

@ -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')