whenDELETE(url, [headers], [keys]); Creates a new backend definition for DELETE requests. For more info see when().
verifyNoPendingTasks(); Verifies that there are no pending tasks that need to be flushed.
whenPUT(url, [data], [headers], [keys]); Creates a new backend definition for PUT requests. For more info see when().
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()
expectJSONP(url, [keys]); Creates a new request expectation for JSONP requests. For more info see expect().
expectDELETE(url, [headers], [keys]); Creates a new request expectation for DELETE requests. For more info see expect()
cancel(promise); Cancels a task associated with the promise. Parameters
resetExpectations(); Resets all request expectations, but preserves all backend definitions. Typically, you would call resetExpectations
expect(method, url, [data], [headers], [keys]); Creates a new request expectation. Parameters
Page 2 of 4