Unwraps the reason of a rejected promise so any other matcher can be chained. If the promise is fulfilled the assertion fails.
Use resolves to unwrap the value of a fulfilled promise so any other matcher can be chained. If the promise is rejected the assertion fails.
Unwraps the reason of a rejected promise so any other matcher can be chained. If the promise is fulfilled the assertion fails.