🎉 New in v0.31.0
Returns a callback to be used with setResponseCallback to mark responses as expected based only on their status codes.
Parameter | Type | Description |
---|---|---|
statuses | integer/objects | either an integer or an object like {min:100, max:300} which gives a minimum and maximum expected status codes |
You can have as many arguments as wanted in any order.
Example
expected-statuses-test.js