Skip to content

Commit 198db2f

Browse files
fix: chooseFormat from livestream tests (#987)
* fix chooseFormat from livestream tests * yikes
1 parent a2627e7 commit 198db2f

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

test/format-utils-test.js

+9-1
Original file line numberDiff line numberDiff line change
@@ -403,10 +403,18 @@ describe('chooseFormat', () => {
403403
describe('and only non-HLS-livestream would match', () => {
404404
it('throws the no format found exception', () => {
405405
assert.throws(() => {
406-
chooseFormat(liveWithHLS, { quality: 'audioonly' });
406+
chooseFormat(liveWithHLS, { filter: 'audioonly' });
407407
}, /No such format found/);
408408
});
409409
});
410+
411+
describe('and some HLS-livestream would match', () => {
412+
it('does not throw an exception', () => {
413+
assert.doesNotThrow(() => {
414+
chooseFormat(liveWithHLS, { });
415+
});
416+
});
417+
});
410418
});
411419

412420
describe('that does not match a format', () => {

0 commit comments

Comments
 (0)