MCPcopy
hub / github.com/angular-ui/ui-router / createShortMethods

Function createShortMethods

test/angular/1.5/angular-mocks.js:1884–1896  ·  view source on GitHub ↗
(prefix)

Source from the content-addressed store, hash-verified

1882
1883
1884 function createShortMethods(prefix) {
1885 angular.forEach(['GET', 'DELETE', 'JSONP', 'HEAD'], function(method) {
1886 $httpBackend[prefix + method] = function(url, headers, keys) {
1887 return $httpBackend[prefix](method, url, undefined, headers, keys);
1888 };
1889 });
1890
1891 angular.forEach(['PUT', 'POST', 'PATCH'], function(method) {
1892 $httpBackend[prefix + method] = function(url, data, headers, keys) {
1893 return $httpBackend[prefix](method, url, data, headers, keys);
1894 };
1895 });
1896 }
1897}
1898
1899function MockHttpExpectation(method, url, data, headers, keys) {

Callers 1

createHttpBackendMockFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected