Skip to content

Commit

Permalink
fix: chooseFormat from livestream tests (#987)
Browse files Browse the repository at this point in the history
* fix chooseFormat from livestream tests

* yikes
  • Loading branch information
TimeForANinja committed Jan 11, 2022
1 parent a2627e7 commit 198db2f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion test/format-utils-test.js
Expand Up @@ -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', () => {
Expand Down

0 comments on commit 198db2f

Please sign in to comment.