mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
test(nav): fix tests
This commit is contained in:
@@ -1091,7 +1091,9 @@ function mockViews(nav: Nav, views: ViewController[]) {
|
||||
function mockNavController(): Nav {
|
||||
const nav = new Nav() as any;
|
||||
nav.el = mockElement('ion-nav') as HTMLElement;
|
||||
nav.ionNavChanged = {emit: function() { return; } };
|
||||
nav.ionNavDidChange = {emit: function() { return; } };
|
||||
nav.ionNavWillChange = {emit: function() { return; } };
|
||||
|
||||
nav.animationCtrl = new AnimationControllerImpl() as any;
|
||||
nav.config = createConfigController({animate: false}, []);
|
||||
nav._viewInit = function (enteringView: ViewController) {
|
||||
|
||||
Reference in New Issue
Block a user