expectPATCH(url, [data], [headers], [keys]); Creates a new request expectation for PATCH requests. For more info see expect()
closeAndFlush(); This method will close all pending animations (both
expectRoute(method, url); Creates a new request expectation that compares only with the requested route.
service in module ngMock
expectHEAD(url, [headers], [keys]); Creates a new request expectation for HEAD requests. For more info see expect().
flush([delay]); Flushes the queue of pending tasks. Parameters
expectPOST(url, [data], [headers], [keys]); Creates a new request expectation for POST requests. For more info see expect()
verifyNoPendingTasks(); Verifies that there are no pending tasks that need to be flushed.
whenDELETE(url, [headers], [keys]); Creates a new backend definition for DELETE requests. For more info see when().
whenPOST(url, [data], [headers], [keys]); Creates a new backend definition for POST requests. For more info see when()
Page 1 of 6