forked from silvermine/videojs-chromecast
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The warning below is appearing in the browser console: ``` VIDEOJS: WARN: videojs.extend is deprecated as of Video.js 7.22.0 and will be removed in Video.js 8.0.0 ``` Issue silvermine#152
- Loading branch information
Eric Fortmeyer
committed
Feb 16, 2023
1 parent
cab6260
commit 26e7281
Showing
2 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
'use strict'; | ||
|
||
var expect = require('expect.js'); | ||
|
||
const chromecastButton = require('../src/js/components/ChromecastButton'); | ||
|
||
describe('ChromecastButton', function() { | ||
it('should not call videojs.extend', function() { | ||
const videoJsSpy = { | ||
extend: function() { | ||
expect().fail('videojs.extends is deprecated'); | ||
}, | ||
getComponent: function() { | ||
// no op | ||
}, | ||
registerComponent: function() { | ||
// no op | ||
}, | ||
}; | ||
|
||
chromecastButton(videoJsSpy); | ||
expect().to.not.fail(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
'use strict'; | ||
|
||
var expect = require('expect.js'); | ||
|
||
const chromecastTech = require('../src/js/tech/ChromecastTech'); | ||
|
||
describe('ChromecastTech', function() { | ||
it('should not call videojs.extend', function() { | ||
const videoJsSpy = { | ||
extend: function() { | ||
expect().fail('videojs.extends is deprecated'); | ||
}, | ||
getComponent: function() { | ||
// no op | ||
}, | ||
registerComponent: function() { | ||
// no op | ||
}, | ||
}; | ||
|
||
chromecastTech(videoJsSpy); | ||
expect().to.not.fail(); | ||
}); | ||
}); |