First release

This commit is contained in:
Owen Quinlan 2021-07-02 19:29:34 +10:00
commit fa6c85266e
2339 changed files with 761050 additions and 0 deletions

21
node_modules/mpd-parser/test/stringToMpdXml.test.js generated vendored Normal file
View file

@ -0,0 +1,21 @@
import { stringToMpdXml } from '../src/stringToMpdXml';
import errors from '../src/errors';
import QUnit from 'qunit';
QUnit.module('stringToMpdXml');
QUnit.test('simple mpd', function(assert) {
assert.deepEqual(stringToMpdXml('<MPD></MPD>').tagName, 'MPD');
});
QUnit.test('invalid xml', function(assert) {
assert.throws(() => stringToMpdXml('<test'), new RegExp(errors.DASH_INVALID_XML));
});
QUnit.test('invalid manifest', function(assert) {
assert.throws(() => stringToMpdXml('<test>'), new RegExp(errors.DASH_INVALID_XML));
});
QUnit.test('empty manifest', function(assert) {
assert.throws(() => stringToMpdXml(''), new RegExp(errors.DASH_EMPTY_MANIFEST));
});