diff options
Diffstat (limited to 'test/service/xhr.errorSpec.js')
| -rw-r--r-- | test/service/xhr.errorSpec.js | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/test/service/xhr.errorSpec.js b/test/service/xhr.errorSpec.js index fdca93ec..d3af4565 100644 --- a/test/service/xhr.errorSpec.js +++ b/test/service/xhr.errorSpec.js @@ -29,10 +29,10 @@ describe('$xhr.error', function() {      $browserXhr.expectPOST('/req', 'MyData').respond(500, 'MyError');      $xhr('POST', '/req', 'MyData', callback);      $browserXhr.flush(); -    var cb = $xhrError.mostRecentCall.args[0].callback; +    var cb = $xhrError.mostRecentCall.args[0].success;      expect(typeof cb).toEqual($function);      expect($xhrError).toHaveBeenCalledWith( -        {url:'/req', method:'POST', data:'MyData', callback:cb}, -        {status:500, body:'MyError'}); +        {url: '/req', method: 'POST', data: 'MyData', success: cb}, +        {status: 500, body: 'MyError'});    });  }); | 
