Const
Asserts that the last yielded value satisfies the expected shape.
Uses partial/satisfy semantics. Note: fully consumes the iterator.
expect([{ a: 1 }, { b: 2, c: 3 }], 'to yield last', { b: 2 }); // passesexpect([1, 2, 3], 'to yield last satisfying', 3); // passes Copy
expect([{ a: 1 }, { b: 2, c: 3 }], 'to yield last', { b: 2 }); // passesexpect([1, 2, 3], 'to yield last satisfying', 3); // passes
iterable-to-yield-last-any
iterable
Asserts that the last yielded value satisfies the expected shape.
Uses partial/satisfy semantics. Note: fully consumes the iterator.