Const
Asserts that the last yielded value satisfies the expected shape.
Uses partial/satisfy semantics. Note: fully consumes the async iterator.
await expectAsync(asyncGen(), 'to yield last', { type: 'footer' }); Copy
await expectAsync(asyncGen(), 'to yield last', { type: 'footer' });
async-iterable-to-yield-last-any
iterable
Asserts that the last yielded value satisfies the expected shape.
Uses partial/satisfy semantics. Note: fully consumes the async iterator.