The function to call.
Optional
error: unknownOptional error to compare thrown exception to. If specified then assertion fails when function does throw an exception equal to this one. If not specified then assertion fails when function throws anything.
Optional
reason: stringOptional reason added to exception message when assertion fails.
Promise which must be awaited in order to complete assertion.
AssertionError when function throws exception matching the given one (or any exception when no error specified).
Asserts that given function does not throw an exception.
The function to call.
Optional
error: unknownOptional error to compare thrown exception to. If specified then assertion fails when function does throw an exception equal to this one. If not specified then assertion fails when function throws anything.
Optional
reason: stringOptional reason added to exception message when assertion fails.
AssertionError when function throws exception matching the given one (or any exception when no error specified).
Asserts that given asynchronous function does not reject the returned promise.