diff --git a/core/src/components/nav/test/nav-controller.spec.ts b/core/src/components/nav/test/nav-controller.spec.ts index cb0ea69bba..0b8dd4d5a2 100644 --- a/core/src/components/nav/test/nav-controller.spec.ts +++ b/core/src/components/nav/test/nav-controller.spec.ts @@ -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) {