Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
adam187 committed Nov 15, 2016
1 parent 8088eb4 commit b391c39
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions test/unit/player.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1253,14 +1253,13 @@ QUnit.test('When VIDEOJS_NO_DYNAMIC_STYLE is set, apply sizing directly to the t
player.dispose();
});

test('should allow to use custom player class', function(){
QUnit.test('should allow to use custom player class', function(assert) {
class CustomPlayer extends Player {}
videojs.registerComponent('Player', CustomPlayer);

let tag = TestHelpers.makeTag();
let player = videojs(tag);

equal(player instanceof CustomPlayer, true, 'player is custom');
const tag = TestHelpers.makeTag();
const player = videojs(tag);

assert.equal(player instanceof CustomPlayer, true, 'player is custom');
player.dispose();
});

0 comments on commit b391c39

Please sign in to comment.