()
| 1115 | }); |
| 1116 | |
| 1117 | function hasParseError() { |
| 1118 | return fixture.componentInstance |
| 1119 | .dateForm() |
| 1120 | .errors() |
| 1121 | .some(error => error.kind === 'matDatepickerParse'); |
| 1122 | } |
| 1123 | |
| 1124 | it('should set the matDatepickerParse error when an invalid value is typed into an empty input', () => { |
| 1125 | expect(hasParseError()).toBe(false); |