Hi All,

I am using Jasmine as a unit testing framework. It is working fine. But 
whenever I am using $timeout inside the code the test control is not going 
inside. I had tried different suggestions provided on internet but dint 
work.
Let say I have following function and I want unit testing for this function 
:


$this.checkDuplicateStrManualEntry = function(str, index){
   $timeout(function(){
    var req = someService.checkDuplicateString(str);
    req.success(function(data){
    if(data.STATUS == "YES") {
     $scope.duplicate_str = true;
    } else {
    $scope.testmodel.str = str;
    return;
  }
 });
};

Here my jasmine control is not going after $timeout. If I remove $timeout then 
it works fine.

Please give some suggestions here.


Thanks

-- 
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 https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to