Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 493b496

Browse files
committed
test($resource): fix broken test
(Introduced while "cleaning up" the tests for in edfb691.)
1 parent 8c1b4c0 commit 493b496

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/ngResource/resourceSpec.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -1725,7 +1725,7 @@ describe('handling rejections', function() {
17251725

17261726
it('should not swallow exceptions in success callback when error callback is provided',
17271727
function() {
1728-
$httpBackend.expect('GET', '/CreditCard/123').respond(null);
1728+
$httpBackend.expectGET('/CreditCard/123').respond(null);
17291729
var CreditCard = $resource('/CreditCard/:id');
17301730
var cc = CreditCard.get({id: 123},
17311731
function(res) { throw new Error('should be caught'); },
@@ -1740,7 +1740,7 @@ describe('handling rejections', function() {
17401740

17411741
it('should not swallow exceptions in success callback when error callback is not provided',
17421742
function() {
1743-
$httpBackend.expect('GET', '/CreditCard/123').respond(null);
1743+
$httpBackend.expectGET('/CreditCard/123').respond(null);
17441744
var CreditCard = $resource('/CreditCard/:id');
17451745
var cc = CreditCard.get({id: 123},
17461746
function(res) { throw new Error('should be caught'); });
@@ -1754,8 +1754,8 @@ describe('handling rejections', function() {
17541754

17551755
it('should not swallow exceptions in success callback when error callback is provided and has responseError interceptor',
17561756
function() {
1757-
$httpBackend.expect('GET', '/CreditCard/123').respond(null);
1758-
var CreditCard = $resource('/CreditCard/:id:', null, {
1757+
$httpBackend.expectGET('/CreditCard/123').respond(null);
1758+
var CreditCard = $resource('/CreditCard/:id', null, {
17591759
get: {
17601760
method: 'GET',
17611761
interceptor: {responseError: function() {}}
@@ -1775,7 +1775,7 @@ describe('handling rejections', function() {
17751775

17761776
it('should not swallow exceptions in success callback when error callback is not provided and has responseError interceptor',
17771777
function() {
1778-
$httpBackend.expect('GET', '/CreditCard/123').respond(null);
1778+
$httpBackend.expectGET('/CreditCard/123').respond(null);
17791779
var CreditCard = $resource('/CreditCard/:id', null, {
17801780
get: {
17811781
method: 'GET',

0 commit comments

Comments
 (0)