Skip to content

Commit

Permalink
ignore: update deprecation warning (#117)
Browse files Browse the repository at this point in the history
  • Loading branch information
forbesjo committed Jun 26, 2018
1 parent 5a8314b commit 6c075f4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/videojs-http-streaming.js
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ class HlsHandler extends Component {
if (!_player.hasOwnProperty('hls')) {
Object.defineProperty(_player, 'hls', {
get: () => {
videojs.log.warn('player.hls is deprecated. Use player.tech_.hls instead.');
videojs.log.warn('player.hls is deprecated. Use player.tech().hls instead.');
tech.trigger({ type: 'usage', name: 'hls-player-access' });
return this;
}
Expand Down
2 changes: 1 addition & 1 deletion test/videojs-http-streaming.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ QUnit.test('deprecation warning is show when using player.hls', function(assert)
let hls = this.player.hls;

assert.equal(hlsPlayerAccessEvents, 1, 'an hls-player-access event was fired');
assert.equal(warning, 'player.hls is deprecated. Use player.tech_.hls instead.', 'warning would have been shown');
assert.equal(warning, 'player.hls is deprecated. Use player.tech().hls instead.', 'warning would have been shown');
assert.ok(hls, 'an instance of hls is returned by player.hls');
videojs.log.warn = oldWarn;
});
Expand Down

0 comments on commit 6c075f4

Please sign in to comment.