(
control: AbstractControl,
log: string[],
controlName?: string,
)
| 2242 | |
| 2243 | describe('emit `statusChanges` and `valueChanges` with/without async/sync validators', () => { |
| 2244 | const attachEventsLogger = ( |
| 2245 | control: AbstractControl, |
| 2246 | log: string[], |
| 2247 | controlName?: string, |
| 2248 | ) => { |
| 2249 | const name = controlName ? ` (${controlName})` : ''; |
| 2250 | control.statusChanges.subscribe((status) => log.push(`status${name}: ${status}`)); |
| 2251 | control.valueChanges.subscribe((value) => |
| 2252 | log.push(`value${name}: ${JSON.stringify(value)}`), |
| 2253 | ); |
| 2254 | }; |
| 2255 | |
| 2256 | describe('stand alone controls', () => { |
| 2257 | it('should run the async validator on stand alone controls and set status to `INVALID`', async () => { |
no test coverage detected
searching dependent graphs…