()
| 256 | // Add async validator that never resolves to keep pending state |
| 257 | let resolveValidator: () => void; |
| 258 | const asyncValidator = () => |
| 259 | new Promise<null>((resolve) => { |
| 260 | resolveValidator = () => resolve(null); |
| 261 | }); |
| 262 | |
| 263 | act(() => { |
| 264 | fixture.componentInstance.model.control.addAsyncValidators(asyncValidator); |