Implement #767 for custom media only

This commit is contained in:
Calvin Montgomery 2018-11-15 22:52:04 -08:00
parent 027b27c1b0
commit 8456b6a125
3 changed files with 8 additions and 6 deletions

View file

@ -90,13 +90,13 @@ describe('custom-media', () => {
assert.throws(() => validate(invalid), /URL protocol must be HTTPS/);
});
it('rejects non-live HLS', () => {
it('rejects non-live DASH', () => {
invalid.live = false;
invalid.sources[0].contentType = 'application/x-mpegURL';
invalid.sources[0].contentType = 'application/dash+xml';
assert.throws(
() => validate(invalid),
/contentType "application\/x-mpegURL" requires live: true/
/contentType "application\/dash\+xml" requires live: true/
);
});
});