Merge "Fix qunit tests"

This commit is contained in:
jenkins-bot 2023-04-29 00:10:43 +00:00 committed by Gerrit Code Review
commit ee70866a6a
2 changed files with 7 additions and 1 deletions

View file

@ -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;

View file

@ -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()
},