Const
Asserts that an 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'
expect([{ a: 1 }], 'to yield value exhaustively satisfying', { a: 1 }); // passesexpect([{ a: 1, b: 2 }], 'to yield value exhaustively satisfying', { a: 1,}); // fails (extra prop) Copy
expect([{ a: 1 }], 'to yield value exhaustively satisfying', { a: 1 }); // passesexpect([{ a: 1, b: 2 }], 'to yield value exhaustively satisfying', { a: 1,}); // fails (extra prop)
iterable-to-yield-value-exhaustively-satisfying-any
iterable
Asserts that an iterable yields a value exhaustively matching the expected value.
Uses deep equality semantics (like
'to equal'). Extra properties on yielded values cause failure.