mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-04 10:19:24 +02:00
Improving the get restream credentials
This commit is contained in:
parent
654dda115a
commit
56cb1fd5cb
6058 changed files with 1166166 additions and 1430809 deletions
42
node_modules/mpd-parser/test/stringToMpdXml.test.js
generated
vendored
42
node_modules/mpd-parser/test/stringToMpdXml.test.js
generated
vendored
|
@ -1,21 +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));
|
||||
});
|
||||
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));
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue