Skip to content

Commit

Permalink
test(nav): fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
manucorporat committed Apr 2, 2018
1 parent a5e5403 commit 14f0117
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/src/components/nav/test/nav-controller.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 14f0117

Please sign in to comment.