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