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()
whenPUT(url, [data], [headers], [keys]); Creates a new backend definition for PUT requests. For more info see when().
expect(method, url, [data], [headers], [keys]); Creates a new request expectation. Parameters
expectDELETE(url, [headers], [keys]); Creates a new request expectation for DELETE requests. For more info see expect()
$countWatchers(); Counts all the watchers of direct and indirect child scopes of the current scope. The watchers of the current
cancel(promise); Cancels a task associated with the promise. Parameters
error.logs Array of messages logged using error().
Page 2 of 4