Const
Assertion for testing if an array-like structure satisfies a pattern or shape.
expect([1, 2, 3], 'to satisfy', [1, NumberSchema, 3]); // passesexpect([1, 'two'], 'to be like', [1, NumberSchema]); // fails Copy
expect([1, 2, 3], 'to satisfy', [1, NumberSchema, 3]); // passesexpect([1, 'two'], 'to be like', [1, NumberSchema]); // fails
Assertion for testing if an array-like structure satisfies a pattern or shape.