( collection: Collection<T>, expectedSize: number, message?: string, )
| 76 | * Assert that a collection's size matches expected |
| 77 | */ |
| 78 | export function assertCollectionSize<T extends object>( |
| 79 | collection: Collection<T>, |
| 80 | expectedSize: number, |
| 81 | message?: string, |
| 82 | ) { |
| 83 | expect(collection.size, message).toBe(expectedSize) |
| 84 | } |
| 85 | |
| 86 | /** |
| 87 | * Assert that all items in a collection match a predicate |
no test coverage detected
searching dependent graphs…