Test a Map to have a specific size. @param size - The size of the Map.
(size: number)
| 18 | @param size - The size of the Map. |
| 19 | */ |
| 20 | size(size: number): this { |
| 21 | return this.addValidator({ |
| 22 | message: (map, label) => `Expected ${label} to have size \`${size}\`, got \`${map.size}\``, |
| 23 | validator: map => map.size === size, |
| 24 | }); |
| 25 | } |
| 26 | |
| 27 | /** |
| 28 | Test an Map to have a minimum size. |
no test coverage detected