diff options
Diffstat (limited to 'test/ng/httpBackendSpec.js')
| -rw-r--r-- | test/ng/httpBackendSpec.js | 6 | 
1 files changed, 6 insertions, 0 deletions
| diff --git a/test/ng/httpBackendSpec.js b/test/ng/httpBackendSpec.js index f82c1750..5d2654a9 100644 --- a/test/ng/httpBackendSpec.js +++ b/test/ng/httpBackendSpec.js @@ -68,6 +68,12 @@ describe('$httpBackend', function() {      expect(xhr.$$async).toBe(true);    }); +  it('should pass null to send if no body is set', function() { +    $backend('GET', '/some-url', null, noop); +    xhr = MockXhr.$$lastInstance; + +    expect(xhr.$$data).toBe(null); +  });    it('should normalize IE\'s 1223 status code into 204', function() {      callback.andCallFake(function(status) { | 
