(bucket: Storage.Bucket<T>, expected: number)
| 21 | }); |
| 22 | |
| 23 | async function assertCount<T>(bucket: Storage.Bucket<T>, expected: number) { |
| 24 | let count = await bucket.count(); |
| 25 | |
| 26 | if (count !== expected) { |
| 27 | throw new Error(`Bucket count of ${bucket.name} was ${count} but expected ${expected}`); |
| 28 | } |
| 29 | } |