Asserts that the given callback or promise throws and that what it throws matches, if provided, the provided constructor or message string.
The callback or promise to check for throwing.
Optional
matching: PartialAndNullable<{ Optional matching options.
Optional
failureMessage: stringMessage to include in the error if the provided callback or promise does not throw.
Asserts that the given callback or promise throws and that what it throws matches, if provided, the provided constructor or message string.
The callback or promise to check for throwing.
Rest
...args: []Optional
matching: PartialAndNullable<{ Optional matching options.
Optional
failureMessage: stringMessage to include in the error if the provided callback or promise does not throw.
Asserts that the given callback or promise throws and that what it throws matches, if provided, the provided constructor or message string.
The callback or promise to check for throwing.
Rest
...args: []Optional
matching: PartialAndNullable<{ Optional matching options.
Optional
failureMessage: stringMessage to include in the error if the provided callback or promise does not throw.
Asserts that the given callback or promise throws and that what it throws matches, if provided, the provided constructor or message string.
The callback or promise to check for throwing.
Rest
...args: []Optional
matching: PartialAndNullable<{ Optional matching options.
Optional
failureMessage: stringMessage to include in the error if the provided callback or promise does not throw.
Asserts that the given callback or promise throws and that what it throws matches, if provided, the provided constructor or message string.
The callback or promise to check for throwing.
Optional
matching: PartialAndNullable<{ Optional matching options.
Optional
failureMessage: stringMessage to include in the error if the provided callback or promise does not throw.
Asserts that the given callback or promise throws and that what it throws matches, if provided, the provided constructor or message string.