mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-06 22:29:44 +08:00
Way too basic of a test, but it's a first stab
This commit is contained in:
19
js/ext/angular/test/directive/ionicNavRouter.unit.js
Normal file
19
js/ext/angular/test/directive/ionicNavRouter.unit.js
Normal file
@ -0,0 +1,19 @@
|
||||
describe('Angular Ionic Nav Router', function() {
|
||||
var modal, q;
|
||||
|
||||
beforeEach(module('ngRoute'));
|
||||
beforeEach(module('ionic.ui.navRouter'));
|
||||
|
||||
beforeEach(inject(function($compile, $rootScope, $controller) {
|
||||
compile = $compile;
|
||||
scope = $rootScope;
|
||||
}));
|
||||
|
||||
iit('Should init', function() {
|
||||
element = compile('<pane nav-router>' +
|
||||
'<nav-bar></nav-bar>' +
|
||||
'<ng-view></ng-view>' +
|
||||
'</pane>')(scope);
|
||||
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user