@@ -126,7 +126,7 @@ describe('MatCalendar', () => {
126126 expect ( calendarInstance . _currentView ) . toBe ( 'multi-year' ) ;
127127 expect ( calendarInstance . _activeDate ) . toEqual ( new Date ( 2017 , JAN , 31 ) ) ;
128128
129- ( < HTMLElement > calendarElement . querySelector ( '.mat-calendar-body-active' ) ) . click ( ) ;
129+ ( calendarElement . querySelector ( '.mat-calendar-body-active' ) as HTMLElement ) . click ( ) ;
130130 fixture . detectChanges ( ) ;
131131
132132 expect ( calendarInstance . _currentView ) . toBe ( 'year' ) ;
@@ -168,7 +168,7 @@ describe('MatCalendar', () => {
168168 expect ( calendarInstance . _activeDate ) . toEqual ( new Date ( 2017 , JAN , 31 ) ) ;
169169
170170 let yearCells = calendarElement . querySelectorAll ( '.mat-calendar-body-cell' ) ;
171- ( < HTMLElement > yearCells [ 0 ] ) . click ( ) ;
171+ ( yearCells [ 0 ] as HTMLElement ) . click ( ) ;
172172 fixture . detectChanges ( ) ;
173173
174174 expect ( calendarInstance . _currentView ) . toBe ( 'year' ) ;
@@ -345,7 +345,7 @@ describe('MatCalendar', () => {
345345
346346 expect ( calendarInstance . _currentView ) . toBe ( 'multi-year' ) ;
347347
348- ( < HTMLElement > calendarBodyEl . querySelector ( '.mat-calendar-body-active' ) ) . click ( ) ;
348+ ( calendarBodyEl . querySelector ( '.mat-calendar-body-active' ) as HTMLElement ) . click ( ) ;
349349 fixture . detectChanges ( ) ;
350350
351351 expect ( calendarInstance . _currentView ) . toBe ( 'year' ) ;
@@ -713,7 +713,7 @@ describe('MatCalendar', () => {
713713 periodButton . click ( ) ;
714714 fixture . detectChanges ( ) ;
715715
716- ( < HTMLElement > calendarElement . querySelector ( '.mat-calendar-body-active' ) ) . click ( ) ;
716+ ( calendarElement . querySelector ( '.mat-calendar-body-active' ) as HTMLElement ) . click ( ) ;
717717 fixture . detectChanges ( ) ;
718718
719719 spyOn ( calendarInstance . yearView , '_init' ) . and . callThrough ( ) ;
@@ -731,7 +731,7 @@ describe('MatCalendar', () => {
731731 periodButton . click ( ) ;
732732 fixture . detectChanges ( ) ;
733733
734- ( < HTMLElement > calendarElement . querySelector ( '.mat-calendar-body-active' ) ) . click ( ) ;
734+ ( calendarElement . querySelector ( '.mat-calendar-body-active' ) as HTMLElement ) . click ( ) ;
735735 fixture . detectChanges ( ) ;
736736
737737 spyOn ( calendarInstance . yearView , '_init' ) . and . callThrough ( ) ;
@@ -829,7 +829,7 @@ describe('MatCalendar', () => {
829829 dispatchMouseEvent ( periodButton , 'click' ) ;
830830 fixture . detectChanges ( ) ;
831831
832- ( < HTMLElement > calendarElement . querySelector ( '.mat-calendar-body-active' ) ) . click ( ) ;
832+ ( calendarElement . querySelector ( '.mat-calendar-body-active' ) as HTMLElement ) . click ( ) ;
833833 fixture . detectChanges ( ) ;
834834
835835 calendarInstance . _activeDate = new Date ( 2017 , NOV , 1 ) ;
0 commit comments