Const
Asserts that an iterable yields exactly the specified values in order.
Uses deep equality semantics. The iterable must yield the exact same number of values in the exact same order.
expect([1, 2, 3], 'to yield exactly', [1, 2, 3]); // passesexpect([{ a: 1, b: 2 }], 'to yield exactly', [{ a: 1 }]); // fails (extra prop) Copy
expect([1, 2, 3], 'to yield exactly', [1, 2, 3]); // passesexpect([{ a: 1, b: 2 }], 'to yield exactly', [{ a: 1 }]); // fails (extra prop)
iterable-to-yield-exactly-array
iterable
Asserts that an iterable yields exactly the specified values in order.
Uses deep equality semantics. The iterable must yield the exact same number of values in the exact same order.