diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/ng/httpSpec.js | 6 | 
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); +      })      });    }); | 
