Hello:
I have isntalled karma, angularjs, angular-mocks.
I set the following up but I do not get errors from karma in console:
describe('',function(){
var scope = {}; // scope –holds items on the controller
beforeEach(function(){ // setup,
module('todo');//module() = angular.mock.module;
});
//inject – access angular controller
inject(function($controller){ // See angular.mock.inject
//$controller – initialize controller with test scope
$controller('TodoController',{$scope:scope});// angular service
});
'todo' does not exists yet, meaning I have not create todo.js.
Why is karma not able to detect todo.js does not exists?
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.