(name: T)
| 285 | |
| 286 | const stubs = new Set<TrackedAsyncOperation>(); |
| 287 | function stub<T extends TrackedAsyncOperation>(name: T) { |
| 288 | (window[name] as unknown) = stubMethods[name]; |
| 289 | stubs.add(name); |
| 290 | } |
| 291 | |
| 292 | function restoreAll() { |
| 293 | for (const name of stubs) { |
no test coverage detected