(c: any)
| 38 | ) {} |
| 39 | |
| 40 | validate(c: any): Observable<ValidationErrors> { |
| 41 | return new Observable((obs: any) => { |
| 42 | const error = this.expected !== c.value ? this.error : null; |
| 43 | obs.next(error); |
| 44 | obs.complete(); |
| 45 | }); |
| 46 | } |
| 47 | } |
| 48 | |
| 49 | describe('Validators', () => { |