(text)
| 159 | } |
| 160 | |
| 161 | function resolveText(text) { |
| 162 | if (caches.length === 0) { |
| 163 | throw Error('Cache does not exist.'); |
| 164 | } else { |
| 165 | // Resolve the most recently created cache. An older cache can by |
| 166 | // resolved with `caches[index].resolve(text)`. |
| 167 | caches[caches.length - 1].resolve(text); |
| 168 | } |
| 169 | } |
| 170 | |
| 171 | // @gate enableLegacyCache |
| 172 | it('isPending works even if called from outside an input event', async () => { |
no outgoing calls
no test coverage detected