Way too basic of a test, but it's a first stab

This commit is contained in:
Max Lynch
2013-11-19 16:04:30 -06:00
parent 4586516e0e
commit a8947355b9
2 changed files with 19 additions and 5 deletions

View File

@ -17,11 +17,6 @@ module.exports = function(config) {
// Include jQuery only for testing convience (lots of DOM checking for unit tests on directives) // 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/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.js',
'dist/js/ionic-angular.js', 'dist/js/ionic-angular.js',

View 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);
});
});