Top "Httpbackend" questions

`$httpBackend` is a fake HTTP backend implementation suitable for unit testing applications that use the `$http` service in Angular.

Unexpected request: GET No more request expected at $httpBackend

I have a function in my scope to retrieve the status of my service when the user clicks a button, …

angularjs jasmine karma-runner httpbackend
How to use regex in AngularJS $httpBackend ExpectGET

I'm passing a url as a parameter in a $resource GET request. Angular is url encoding this parameter and matching …

regex angularjs httpbackend
Testing backend API via $http in AngularJS/karma/jasmine tests?

How do I test my API backend using AngularJS/karma/jasmine tests? I have tried to create the smallest test-case …

angularjs jasmine karma-runner httpbackend angularjs-http
$httpBackend with request with query param

$httpBackend.whenGET('/restpath/api/v1/books') .respond({// some data}); I get the following error Error: Unexpected request: GET /restpath/…

angularjs httpbackend
Unit testing AngularJS with $httpBackend gives "Error: Unexpected Request"

I'm gonna preface this question by saying I've already gotten a test to work for my "LoginCtrl" which performs almost …

angularjs jasmine karma-runner httpbackend
How do I mock $http in AngularJS service Jasmine test?

I am trying to test an AngularJS service carService, but the $httpBackend does not seem to work. //carService angular.module(…

angularjs unit-testing jasmine httpbackend
AngularJS unit test for directive that queries server returns "Unsatisfied requests"

I have a bookmarking app that takes in a url and automatically extracts a summary. When the client requests the …

angularjs unit-testing angularjs-directive httpbackend
HAProxy and reqrep path rewriting with redirect configuration

With HA Proxy 1.5 I need to rewrite URL from http://main.domain.com/my-foo to http://othersite.com:8081/other-bar Here …

regex redirect url-rewriting haproxy httpbackend
Can I use some Python in the backend for an Android app?

Most of the backend stuff is in PHP which handle JSON request and response flow of data from Android app …

android python backend custom-backend httpbackend