ngMock.$httpBackend.expectRoute()

expectRoute(method, url);

Creates a new request expectation that compares only with the requested route.

Parameters

Param Type Details
method string

HTTP method.

url string

HTTP url string that supports colon param matching.

Returns

requestHandler

Returns an object with respond method that controls how a matched request is handled. You can save this object for later use and invoke respond again in order to change how a matched request is handled. See #expect for more info.

doc_AngularJS
2016-03-29 16:12:01
Comments
Leave a Comment

Please login to continue.