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