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

Commit 506fe73

Browse files
committed
test(ngMocks): use correct method name in $httpBackend test
1 parent 510404e commit 506fe73

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/ngMock/angular-mocksSpec.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -2251,7 +2251,7 @@ describe('ngMock', function() {
22512251
}
22522252
);
22532253
they('should ignore query params when matching in ' + routeShortcut + ' $prop method', methods,
2254-
function() {
2254+
function(method) {
22552255
angular.forEach([
22562256
{route: '/route1/:id', url: '/route1/Alpha', expectedParams: {id: 'Alpha'}},
22572257
{route: '/route2/:id', url: '/route2/Bravo/?', expectedParams: {id: 'Bravo'}},
@@ -2268,14 +2268,14 @@ describe('ngMock', function() {
22682268
], function(testDataEntry) {
22692269
callback.calls.reset();
22702270
var paramsSpy = jasmine.createSpy('params');
2271-
hb[routeShortcut](this, testDataEntry.route).respond(
2271+
hb[routeShortcut](method, testDataEntry.route).respond(
22722272
function(method, url, data, headers, params) {
22732273
paramsSpy(params);
22742274
// status, response, headers, statusText, xhrStatus
22752275
return [200, 'path', { 'x-header': 'foo' }, 'OK', 'complete'];
22762276
}
22772277
);
2278-
hb(this, testDataEntry.url, undefined, callback);
2278+
hb(method, testDataEntry.url, undefined, callback);
22792279
hb.flush();
22802280
expect(callback).toHaveBeenCalledOnceWith(200, 'path', 'x-header: foo', 'OK', 'complete');
22812281
expect(paramsSpy).toHaveBeenCalledOnceWith(testDataEntry.expectedParams);

0 commit comments

Comments
 (0)