(
/** @type {Error | null | undefined} */ err,
/** @type {unknown} */ res
)
| 27 | const itemCaches = generateItemCaches(10); |
| 28 | const multiItemCache = new MultiItemCache(itemCaches); |
| 29 | const callback = ( |
| 30 | /** @type {Error | null | undefined} */ err, |
| 31 | /** @type {unknown} */ res |
| 32 | ) => { |
| 33 | expect(err).toBeNull(); |
| 34 | expect(res).toBeInstanceOf(Object); |
| 35 | }; |
| 36 | for (let i = 0; i < 10; ++i) { |
| 37 | multiItemCache.get(callback); |
| 38 | } |
no outgoing calls