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