diff options
| author | Étienne Barrié | 2013-07-31 14:50:56 +0200 |
|---|---|---|
| committer | Jeff Cross | 2013-08-01 16:07:33 -0700 |
| commit | 3079a6f4e097a777414b8c3a8a87b8e1e20b55b5 (patch) | |
| tree | 3a5998e71513583a89c08615dfc2fd057dc706aa /test | |
| parent | 3c0c7165e26ec53bc408a6cca367e11f0433682a (diff) | |
| download | angular.js-3079a6f4e097a777414b8c3a8a87b8e1e20b55b5.tar.bz2 | |
fix(ngMock): keep withCredentials on passThrough
When using passThrough() and specifying withCredentials on the $http
call, the option is now passed to the underlying $httpBackend.
Diffstat (limited to 'test')
| -rw-r--r-- | test/ngMock/angular-mocksSpec.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ngMock/angular-mocksSpec.js b/test/ngMock/angular-mocksSpec.js index 9002d854..893fe14c 100644 --- a/test/ngMock/angular-mocksSpec.js +++ b/test/ngMock/angular-mocksSpec.js @@ -1088,10 +1088,10 @@ describe('ngMockE2E', function() { describe('passThrough()', function() { it('should delegate requests to the real backend when passThrough is invoked', function() { hb.when('GET', /\/passThrough\/.*/).passThrough(); - hb('GET', '/passThrough/23', null, callback); + hb('GET', '/passThrough/23', null, callback, {}, null, true); expect(realHttpBackend).toHaveBeenCalledOnceWith( - 'GET', '/passThrough/23', null, callback, undefined, undefined); + 'GET', '/passThrough/23', null, callback, {}, null, true); }); }); |
