Const
Asserts that an 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'
expect([{ a: 1, b: 2 }], 'to yield', { a: 1 }); // passes (partial match)expect([1, 2, 3], 'to emit', 2); // passesexpect(myGenerator(), 'to yield value satisfying', { name: 'test' }); // passes Copy
expect([{ a: 1, b: 2 }], 'to yield', { a: 1 }); // passes (partial match)expect([1, 2, 3], 'to emit', 2); // passesexpect(myGenerator(), 'to yield value satisfying', { name: 'test' }); // passes
iterable-to-yield-any
iterable
Asserts that an 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.