(fn: () => T)
| 454 | }); |
| 455 | |
| 456 | function act<T>(fn: () => T): T { |
| 457 | try { |
| 458 | return fn(); |
| 459 | } finally { |
| 460 | TestBed.tick(); |
| 461 | } |
| 462 | } |
| 463 | |
| 464 | // Async version that waits for application to stabilize (for NgModel's async value updates) |
| 465 | async function actAsync<T>(fn: () => T): Promise<T> { |
no test coverage detected