(fn: () => T)
| 1514 | } |
| 1515 | |
| 1516 | async function actAsync<T>(fn: () => T): Promise<T> { |
| 1517 | try { |
| 1518 | return fn(); |
| 1519 | } finally { |
| 1520 | await TestBed.inject(ApplicationRef).whenStable(); |
| 1521 | } |
| 1522 | } |
| 1523 | |
| 1524 | /** |
| 1525 | * Replace with `Promise.withResolvers()` once it's available. |
no test coverage detected