Hi everyone,
I'm trying to make my project with login function and now I want to make 
Unit Test for it. I'm using Karma for my test, but it failed. Could someone 
please help me to fix my test code right?

Here is my login
angular.module('myApp')
 .controller('LoginCtrl', function($scope, $http, $location, $cookieStore) {
   var self = this;
   $scope.invalid = false;
   $scope.username=$cookieStore.username;
   $scope.password=$cookieStore.password;

   this.login=function(){
     $http.post('/login', {
       username=$scope.username,



-- 
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 angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to