Const
Asserts that an async iterable rejects with a specific error type.
await expectAsync(failingStream, 'to reject with a', TypeError);await expectAsync(failingStream, 'to reject with an', Error); Copy
await expectAsync(failingStream, 'to reject with a', TypeError);await expectAsync(failingStream, 'to reject with an', Error);
async-iterable-to-reject-with-a-constructor
iterable
Asserts that an async iterable rejects with a specific error type.