1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 01:39:24 +02:00
Oinktube/node_modules/videojs-playlist/test/plugin.test.js
Daniel Neto 14f492d68f update
2023-07-02 19:30:57 -03:00

20 lines
696 B
JavaScript

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'
);
});