Skip to content

Commit 07ff9f4

Browse files
author
Danny Rankevich
committed
fix(ngMockE2E): added function parameter to on request passThrough angular#5783
1 parent b041b66 commit 07ff9f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ngMock/angular-mocks.js

100644100755
+2-2
Original file line numberDiff line numberDiff line change
@@ -1103,7 +1103,7 @@ function createHttpBackendMock($rootScope, $delegate, $browser) {
11031103
}
11041104

11051105
// TODO(vojta): change params to: method, url, data, headers, callback
1106-
function $httpBackend(method, url, data, callback, headers, timeout, withCredentials) {
1106+
function $httpBackend(method, url, data, callback, headers, timeout, withCredentials, responseType) {
11071107
var xhr = new MockXhr(),
11081108
expectation = expectations[0],
11091109
wasExpected = false;
@@ -1163,7 +1163,7 @@ function createHttpBackendMock($rootScope, $delegate, $browser) {
11631163
// if $browser specified, we do auto flush all requests
11641164
($browser ? $browser.defer : responsesPush)(wrapResponse(definition));
11651165
} else if (definition.passThrough) {
1166-
$delegate(method, url, data, callback, headers, timeout, withCredentials);
1166+
$delegate(method, url, data, callback, headers, timeout, withCredentials, responseType);
11671167
} else throw new Error('No response defined !');
11681168
return;
11691169
}

0 commit comments

Comments
 (0)