expectRoute(method, url); Creates a new request expectation that compares only with the requested route.
expectHEAD(url, [headers], [keys]); Creates a new request expectation for HEAD requests. For more info see expect().
service in module ngMock
Name Description angular
whenPUT(url, [data], [headers], [keys]); Creates a new backend definition for PUT requests. For more info see when().
$exceptionHandler
expectPUT(url, [data], [headers], [keys]); Creates a new request expectation for PUT requests. For more info see expect()
Installation First include angular-mocks.js in your HTML: <script
Page 2 of 6