fix(web): treat AIFF and WavPack as lossless in the upload format hint
The web check only accepted FLAC and WAV, so AIFF files were flagged "needs attention" although the server already counts them as lossless. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
dca7173a88
commit
4d2c6ce22f
6 files changed
+14
-10
No files matched your search
@@ -316,10 +316,10 @@ describe('my wave', () => {
|
||||
});
|
||||
|
||||
describe('suggest tracks', () => {
|
||||
it('warns that FLAC and WAV are the formats to send', async () => {
|
||||
it('warns that lossless formats are the ones to send', async () => {
|
||||
const admin = makeUser('admin', 'admin');
|
||||
await renderApp([admin], '/uploads/new', { signedInAs: admin });
|
||||
expect(await screen.findByText(/Нужны FLAC или WAV/)).toBeInTheDocument();
|
||||
expect(await screen.findByText(/Нужны FLAC, WAV или AIFF/)).toBeInTheDocument();
|
||||
expect(screen.getByText(/MP3 — только в крайнем случае/)).toBeInTheDocument();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user