mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-03-26 00:26:05 -07:00
Fix YouTube playback PR review issues
This commit is contained in:
@@ -65,3 +65,12 @@ test('resolveYoutubePlaybackUrl rejects when yt-dlp returns no URL', async () =>
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
test('resolveYoutubePlaybackUrl rejects when yt-dlp output exceeds capture limit', async () => {
|
||||
await withFakeYtDlp(`${'x'.repeat(1024 * 1024 + 1)}\n`, async () => {
|
||||
await assert.rejects(
|
||||
resolveYoutubePlaybackUrl('https://www.youtube.com/watch?v=abc123'),
|
||||
/exceeded 1048576 bytes/,
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user