mode(mode); Sets the logging mode. Parameters
expectPOST(url, [data], [headers], [keys]); Creates a new request expectation for POST requests. For more info see expect()
whenPUT(url, [data], [headers], [keys]); Creates a new backend definition for PUT requests. For more info see when().
expectPUT(url, [data], [headers], [keys]); Creates a new request expectation for PUT requests. For more info see expect()
whenHEAD(url, [headers], [keys]); Creates a new backend definition for HEAD requests. For more info see when().
$countWatchers(); Counts all the watchers of direct and indirect child scopes of the current scope. The watchers of the current
expectJSONP(url, [keys]); Creates a new request expectation for JSONP requests. For more info see expect().
expect(method, url, [data], [headers], [keys]); Creates a new request expectation. Parameters
resetExpectations(); Resets all request expectations, but preserves all backend definitions. Typically, you would call resetExpectations
error.logs Array of messages logged using error().
Page 2 of 4