Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

fix(ngMockE2E): added function parameter to $delegate on request passThrough #5783

Conversation

biohazardpb4
Copy link

The ngMockE2E $httpBackend has a mechanism to allows requests to pass through if one wants
to send a real http request instead of mocking. The responseType of the request was never
passed through to the real http module, as it was missing in the function parameter list.

closes #5415

…Through

The ngMockE2E $httpBackend has a mechanism to allows requests to pass through if one wants
to send a real http request instead of mocking. The responseType of the request was never
passed through to the real http module, as it was missing in the function parameter list.

closes angular#5415
@schmod
Copy link
Contributor

schmod commented Feb 19, 2014

+1 to merging this. should be a no-brainer

@mdudek
Copy link

mdudek commented Apr 1, 2014

+1 to merging this

@ondracervinka
Copy link

+1 Please merge this one. This issue prevents mocking any service that returns any other type than string.

@sdenier
Copy link

sdenier commented Jul 2, 2014

+1. This is especially useful when one starts to use mock httpBackend for prototyping development, as with this pattern: http://cloudspace.com/blog/2014/03/27/backend-less-development-with-angular/#.U7RMZha6rGs

@brphelps
Copy link

brphelps commented Apr 5, 2015

Can someone please commit this?

@prateek14
Copy link

+1. Any reason this has not been merged with yet?

@daniran
Copy link

daniran commented Apr 28, 2015

As already mentioned: This issue prevents mocking any service that returns any other type than string.
Any reason this was not merged yet?

gkalpak pushed a commit that referenced this pull request Feb 16, 2016
…rough`

The `ngMockE2E` `$httpBackend` has a mechanism to allow requests to pass through, if one wants to
send a real HTTP request instead of mocking. The specified `responseType` of the request was never
passed through to the "real" `$httpBackend` (of the `ng` module), resulting in it being effectively
ignored.

Fixes #5415

Closes #5783
gkalpak pushed a commit that referenced this pull request Feb 16, 2016
…rough`

The `ngMockE2E` `$httpBackend` has a mechanism to allow requests to pass through, if one wants to
send a real HTTP request instead of mocking. The specified `responseType` of the request was never
passed through to the "real" `$httpBackend` (of the `ng` module), resulting in it being effectively
ignored.

Fixes #5415

Closes #5783
@gkalpak
Copy link
Member

gkalpak commented Feb 16, 2016

Fixed a failing test (and JSCS issue) and merged !
Alos, backported to v1.5.x (d16faf9) and v1.4.x (947cb4d).

(Sorry it took us so long 😕)

@JimJafar
Copy link

@gkalpak - will there be a 1.4.10 release containing this fix or will we need to upgrade to 1.5.1 when it is released?

@gkalpak
Copy link
Member

gkalpak commented Mar 17, 2016

It will be in v1.4.10 (which is almost released).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.