@@ -126,7 +126,7 @@ describe('MatCalendar', () => {
126
126
expect ( calendarInstance . _currentView ) . toBe ( 'multi-year' ) ;
127
127
expect ( calendarInstance . _activeDate ) . toEqual ( new Date ( 2017 , JAN , 31 ) ) ;
128
128
129
- ( < HTMLElement > calendarElement . querySelector ( '.mat-calendar-body-active' ) ) . click ( ) ;
129
+ ( calendarElement . querySelector ( '.mat-calendar-body-active' ) as HTMLElement ) . click ( ) ;
130
130
fixture . detectChanges ( ) ;
131
131
132
132
expect ( calendarInstance . _currentView ) . toBe ( 'year' ) ;
@@ -168,7 +168,7 @@ describe('MatCalendar', () => {
168
168
expect ( calendarInstance . _activeDate ) . toEqual ( new Date ( 2017 , JAN , 31 ) ) ;
169
169
170
170
let yearCells = calendarElement . querySelectorAll ( '.mat-calendar-body-cell' ) ;
171
- ( < HTMLElement > yearCells [ 0 ] ) . click ( ) ;
171
+ ( yearCells [ 0 ] as HTMLElement ) . click ( ) ;
172
172
fixture . detectChanges ( ) ;
173
173
174
174
expect ( calendarInstance . _currentView ) . toBe ( 'year' ) ;
@@ -345,7 +345,7 @@ describe('MatCalendar', () => {
345
345
346
346
expect ( calendarInstance . _currentView ) . toBe ( 'multi-year' ) ;
347
347
348
- ( < HTMLElement > calendarBodyEl . querySelector ( '.mat-calendar-body-active' ) ) . click ( ) ;
348
+ ( calendarBodyEl . querySelector ( '.mat-calendar-body-active' ) as HTMLElement ) . click ( ) ;
349
349
fixture . detectChanges ( ) ;
350
350
351
351
expect ( calendarInstance . _currentView ) . toBe ( 'year' ) ;
@@ -713,7 +713,7 @@ describe('MatCalendar', () => {
713
713
periodButton . click ( ) ;
714
714
fixture . detectChanges ( ) ;
715
715
716
- ( < HTMLElement > calendarElement . querySelector ( '.mat-calendar-body-active' ) ) . click ( ) ;
716
+ ( calendarElement . querySelector ( '.mat-calendar-body-active' ) as HTMLElement ) . click ( ) ;
717
717
fixture . detectChanges ( ) ;
718
718
719
719
spyOn ( calendarInstance . yearView , '_init' ) . and . callThrough ( ) ;
@@ -731,7 +731,7 @@ describe('MatCalendar', () => {
731
731
periodButton . click ( ) ;
732
732
fixture . detectChanges ( ) ;
733
733
734
- ( < HTMLElement > calendarElement . querySelector ( '.mat-calendar-body-active' ) ) . click ( ) ;
734
+ ( calendarElement . querySelector ( '.mat-calendar-body-active' ) as HTMLElement ) . click ( ) ;
735
735
fixture . detectChanges ( ) ;
736
736
737
737
spyOn ( calendarInstance . yearView , '_init' ) . and . callThrough ( ) ;
@@ -829,7 +829,7 @@ describe('MatCalendar', () => {
829
829
dispatchMouseEvent ( periodButton , 'click' ) ;
830
830
fixture . detectChanges ( ) ;
831
831
832
- ( < HTMLElement > calendarElement . querySelector ( '.mat-calendar-body-active' ) ) . click ( ) ;
832
+ ( calendarElement . querySelector ( '.mat-calendar-body-active' ) as HTMLElement ) . click ( ) ;
833
833
fixture . detectChanges ( ) ;
834
834
835
835
calendarInstance . _activeDate = new Date ( 2017 , NOV , 1 ) ;
0 commit comments