From 86182a9415b9209662b16c25c180b958ba7e6cf9 Mon Sep 17 00:00:00 2001 From: Vojta Jina Date: Tue, 3 Apr 2012 11:00:52 -0700 Subject: feat($http): add withCredentials config option --- test/ng/httpBackendSpec.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test/ng/httpBackendSpec.js') diff --git a/test/ng/httpBackendSpec.js b/test/ng/httpBackendSpec.js index 820099e8..91c0574d 100644 --- a/test/ng/httpBackendSpec.js +++ b/test/ng/httpBackendSpec.js @@ -113,6 +113,12 @@ describe('$httpBackend', function() { }); + it('should set withCredentials', function() { + $backend('GET', '/some.url', null, callback, {}, null, true); + expect(MockXhr.$$lastInstance.withCredentials).toBe(true); + }); + + describe('JSONP', function() { var SCRIPT_URL = /([^\?]*)\?cb=angular\.callbacks\.(.*)/; -- cgit v1.2.3