Const
Asserts that an async iterable yields a value exhaustively matching the expected value.
Uses deep equality semantics (like 'to equal'). Extra properties on yielded values cause failure.
'to equal'
await expectAsync(asyncGen(), 'to yield value exhaustively satisfying', { a: 1,}); // passes if { a: 1 } exactly is yielded Copy
await expectAsync(asyncGen(), 'to yield value exhaustively satisfying', { a: 1,}); // passes if { a: 1 } exactly is yielded
async-iterable-to-yield-value-exhaustively-satisfying-any
iterable
Asserts that an async iterable yields a value exhaustively matching the expected value.
Uses deep equality semantics (like
'to equal'). Extra properties on yielded values cause failure.