mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-07 15:07:13 +08:00
Way too basic of a test, but it's a first stab
This commit is contained in:
@ -17,11 +17,6 @@ module.exports = function(config) {
|
||||
// Include jQuery only for testing convience (lots of DOM checking for unit tests on directives)
|
||||
'https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js',
|
||||
|
||||
'https://ajax.googleapis.com/ajax/libs/angularjs/1.2.0-rc.2/angular.min.js',
|
||||
'https://ajax.googleapis.com/ajax/libs/angularjs/1.2.0-rc.2/angular-mocks.js',
|
||||
'https://ajax.googleapis.com/ajax/libs/angularjs/1.2.0-rc.2/angular-touch.js',
|
||||
'https://ajax.googleapis.com/ajax/libs/angularjs/1.2.0-rc.2/angular-animate.js',
|
||||
|
||||
'dist/js/ionic.js',
|
||||
'dist/js/ionic-angular.js',
|
||||
|
||||
|
||||
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