1
0
mirror of https://github.com/videojs/video.js.git synced 2025-02-02 11:34:50 +02:00

chore(test): silence plugin warning from test (#4173)

This commit is contained in:
Pat O'Neill 2017-03-07 14:13:19 -05:00 committed by Gary Katsevman
parent bf787bd5cc
commit 05e64948c5

View File

@ -73,7 +73,7 @@ QUnit.test('registerPlugin() illegal arguments', function(assert) {
'plugins must be functions'
);
sinon.spy(log, 'warn');
sinon.stub(log, 'warn');
Plugin.registerPlugin('foo', function() {});
Plugin.registerPlugin('foo', function() {});
assert.strictEqual(log.warn.callCount, 1, 'warn on re-registering a plugin');