diff --git a/test/format-utils-test.js b/test/format-utils-test.js index 4f77b2ab..c0abb780 100644 --- a/test/format-utils-test.js +++ b/test/format-utils-test.js @@ -403,10 +403,18 @@ describe('chooseFormat', () => { describe('and only non-HLS-livestream would match', () => { it('throws the no format found exception', () => { assert.throws(() => { - chooseFormat(liveWithHLS, { quality: 'audioonly' }); + chooseFormat(liveWithHLS, { filter: 'audioonly' }); }, /No such format found/); }); }); + + describe('and some HLS-livestream would match', () => { + it('does not throw an exception', () => { + assert.doesNotThrow(() => { + chooseFormat(liveWithHLS, { }); + }); + }); + }); }); describe('that does not match a format', () => {