javascript - How do i use the actually implementation of $http in angular.js test? -


i know how mock $http module(if module correct term) in test want test perform actual http request. can't work out how inject implementation of $http used in controller.

controller:

function checklistcontroller($scope, $http, $routeparams) { ......... } 

the valid scenario can think of perform end-to-end tests. in such case, should use passthrough method of request handler returned when method of ngmocke2e.$httpbackend service.

more information on matter here.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -