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
Post a Comment