describe('Ionic nav-view', function() { beforeEach(module('ionic.ui.viewState')); var compile, scope; beforeEach(inject(function($compile, $rootScope) { compile = $compile; scope = $rootScope.$new(); })); it('should publish a controller', function() { var view = angular.element(''); compile(view)(scope); scope.$apply(); expect(view.controller('ionNavView')).toBeTruthy(); }); /* * TODO adapt the tests from uiRouter */ });