()
| 278 | // Add async validator that never resolves to keep pending state |
| 279 | let resolveValidator: () => void; |
| 280 | const asyncValidator = () => |
| 281 | new Promise<null>((resolve) => { |
| 282 | resolveValidator = () => resolve(null); |
| 283 | }); |
| 284 | |
| 285 | act(() => { |
| 286 | fixture.componentInstance.ctrl.addAsyncValidators(asyncValidator); |