(bucket: Storage.Bucket<T>, expected: number, pattern?: string)
| 25 | }); |
| 26 | |
| 27 | async function assertCount<T>(bucket: Storage.Bucket<T>, expected: number, pattern?: string) { |
| 28 | let count = await bucket.count(pattern); |
| 29 | |
| 30 | if (count !== expected) { |
| 31 | throw new Error(`Bucket count of ${bucket.name} was ${count} but expected ${expected}`); |
| 32 | } |
| 33 | } |