Const
Asserts that an array has a specific size.
expect([1, 2, 3], 'to have length', 3); // passesexpect([1, 2, 3], 'to have size', 2); // fails Copy
expect([1, 2, 3], 'to have length', 3); // passesexpect([1, 2, 3], 'to have size', 2); // fails
array-to-have-size-nonnegative-integer
collections
Asserts that an array has a specific size.