Const
Asserts that an async iterable completes without throwing.
Fully consumes the iterator and verifies no error is thrown during iteration.
await expectAsync(asyncGenerator(), 'to complete'); // passes if no errorawait expectAsync(nodeReadable, 'to finish'); // passes if stream ends cleanly Copy
await expectAsync(asyncGenerator(), 'to complete'); // passes if no errorawait expectAsync(nodeReadable, 'to finish'); // passes if stream ends cleanly
async-iterable-to-complete
iterable
Asserts that an async iterable completes without throwing.
Fully consumes the iterator and verifies no error is thrown during iteration.