(response: {[key: string]: any})
| 470 | describe('composeAsync', () => { |
| 471 | describe('promises', () => { |
| 472 | function promiseValidator(response: {[key: string]: any}): AsyncValidatorFn { |
| 473 | return (c: AbstractControl) => { |
| 474 | const res = c.value != 'expected' ? response : null; |
| 475 | return Promise.resolve(res); |
| 476 | }; |
| 477 | } |
| 478 | |
| 479 | it('should return null when given null', () => { |
| 480 | expect(Validators.composeAsync(null!)).toBeNull(); |
no test coverage detected
searching dependent graphs…