From 3079a6f4e097a777414b8c3a8a87b8e1e20b55b5 Mon Sep 17 00:00:00 2001 From: Étienne Barrié Date: Wed, 31 Jul 2013 14:50:56 +0200 Subject: 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. --- test/ngMock/angular-mocksSpec.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/ngMock/angular-mocksSpec.js') 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); }); }); -- cgit v1.2.3