Const
Asserts that a Map has a specific size.
const map = new Map([ ['a', 1], ['b', 2],]);expect(map, 'to have size', 2); // passesexpect(map, 'to have size', 3); // fails Copy
const map = new Map([ ['a', 1], ['b', 2],]);expect(map, 'to have size', 2); // passesexpect(map, 'to have size', 3); // fails
map-to-have-size-nonnegative-integer
collections
Asserts that a Map has a specific size.