expectPATCH(url, [data], [headers], [keys]);
Creates a new request expectation for PATCH requests. For more info see expect()
.
Parameters
Param | Type | Details |
---|---|---|
url | string RegExp function(string) | HTTP url or function that receives a url and returns true if the url matches the current definition. |
data (optional) | string RegExp function(string) Object | HTTP request body or function that receives data string and returns true if the data is as expected, or Object if request body is in JSON format. |
headers (optional) | Object | HTTP headers. |
keys (optional) | Array | Array of keys to assign to regex matches in request url described above. |
Returns
requestHandler |
Returns an object with |
Please login to continue.