aboutsummaryrefslogtreecommitdiffstats
path: root/test/ng/httpSpec.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/ng/httpSpec.js')
-rw-r--r--test/ng/httpSpec.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/ng/httpSpec.js b/test/ng/httpSpec.js
index d3653a67..a0417d9a 100644
--- a/test/ng/httpSpec.js
+++ b/test/ng/httpSpec.js
@@ -1439,6 +1439,12 @@ describe('$http', function() {
$http.get('/url');
$httpBackend.flush();
});
+
+ it('should have seperate opbjects for defaults PUT and POST', function() {
+ expect($http.defaults.headers.post).not.toBe($http.defaults.headers.put);
+ expect($http.defaults.headers.post).not.toBe($http.defaults.headers.patch);
+ expect($http.defaults.headers.put).not.toBe($http.defaults.headers.patch);
+ })
});
});