Const
Asserts that an async iterable yields a value satisfying the expected shape.
Uses partial/satisfy semantics (like 'to satisfy'). The assertion passes if ANY yielded value matches the expected shape.
'to satisfy'
await expectAsync(asyncGenerator(), 'to yield', 'value'); // passesawait expectAsync(nodeReadable, 'to emit', 'chunk'); // passesawait expectAsync(response.body, 'to yield value satisfying', { data: 'test',}); // Web Stream Copy
await expectAsync(asyncGenerator(), 'to yield', 'value'); // passesawait expectAsync(nodeReadable, 'to emit', 'chunk'); // passesawait expectAsync(response.body, 'to yield value satisfying', { data: 'test',}); // Web Stream
async-iterable-to-yield-any
iterable
Asserts that an async iterable yields a value satisfying the expected shape.
Uses partial/satisfy semantics (like
'to satisfy'). The assertion passes if ANY yielded value matches the expected shape.