doesNotReject
Summary
Asserts that the promise returned by fn does not reject.
Signature
Example
await assert.doesNotReject(() => fetch('/healthy'))
Parameters
fn
A function returning a promise.
expectedErrorOrMessage
Optional error constructor, instance, RegExp, object, validator, or failure message.
message
Optional failure message when expectedErrorOrMessage is an error matcher.