diff --git a/tests/qunit/mmv/mmv.bootstrap.test.js b/tests/qunit/mmv/mmv.bootstrap.test.js index f12a2a334..0405fba37 100644 --- a/tests/qunit/mmv/mmv.bootstrap.test.js +++ b/tests/qunit/mmv/mmv.bootstrap.test.js @@ -59,7 +59,11 @@ bootstrap.ensureEventHandlersAreSetUp = function () {}; bootstrap.getViewer = function () { - return viewer || { initWithThumbs: function () {}, hash: function () {} }; + return viewer || { + initWithThumbs: function () {}, + hash: function () {}, + router: { checkRoute: function () {} } + }; }; return bootstrap; diff --git a/tests/qunit/mmv/mmv.test.js b/tests/qunit/mmv/mmv.test.js index afabc92e7..bdd90ae91 100644 --- a/tests/qunit/mmv/mmv.test.js +++ b/tests/qunit/mmv/mmv.test.js @@ -135,6 +135,7 @@ animateMetadataOnce: function () {} }, progressBar: { + hide: this.sandbox.stub(), animateTo: this.sandbox.stub(), jumpTo: this.sandbox.stub() } @@ -428,6 +429,7 @@ animateMetadataOnce: function () {} }, progressBar: { + hide: this.sandbox.stub(), animateTo: this.sandbox.stub(), jumpTo: this.sandbox.stub() },