Hi Hardik,

If you need to make API calls in unit tests, maybe you are doing something 
wrong.

Maybe your should try to make E2E tests with Protractor ?

Cheers,
Charly.

Le jeudi 31 juillet 2014 15:29:07 UTC+2, Hardik Patel a écrit :
>
> Hello,
>    
>       I am using $http for calling the rest APIs. Now i want to test that 
> rest API call using angular. I have tried using $httpbackend, but 
> $httpbackend make only fake http request. I want to test it with real one , 
> in which i should get response from rest API and i will be able to test it. 
>  
>
> So any one can help me to solve this issue?..
>
>

-- 
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.

Reply via email to