Files
ionic-framework/test/unit/angular/directive/navView.unit.js
2014-04-14 10:47:27 -06:00

22 lines
489 B
JavaScript

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