mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-04 10:19:24 +02:00
update
This commit is contained in:
parent
ed9048ec37
commit
14f492d68f
60 changed files with 27146 additions and 0 deletions
20
node_modules/videojs-playlist/test/plugin.test.js
generated
vendored
Normal file
20
node_modules/videojs-playlist/test/plugin.test.js
generated
vendored
Normal file
|
@ -0,0 +1,20 @@
|
|||
import QUnit from 'qunit';
|
||||
import sinon from 'sinon';
|
||||
import videojs from 'video.js';
|
||||
import plugin from '../src/plugin';
|
||||
|
||||
QUnit.test('the environment is sane', function(assert) {
|
||||
assert.strictEqual(typeof Array.isArray, 'function', 'es5 exists');
|
||||
assert.strictEqual(typeof sinon, 'object', 'sinon exists');
|
||||
assert.strictEqual(typeof videojs, 'function', 'videojs exists');
|
||||
assert.strictEqual(typeof plugin, 'function', 'plugin is a function');
|
||||
});
|
||||
|
||||
QUnit.test('registers itself with video.js', function(assert) {
|
||||
assert.expect(1);
|
||||
assert.strictEqual(
|
||||
typeof videojs.getComponent('Player').prototype.playlist,
|
||||
'function',
|
||||
'videojs-playlist plugin was registered'
|
||||
);
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue