to have size

  • <Collection> [not] to have size <number>

Asserts that the immutable collection has the expected size.

expect(new List([ 1, 2, 3]), 'to have size', 3);