@@ -280,7 +280,8 @@ describe('MatCheckbox', () => {
280280 } ) ;
281281
282282 it ( 'should project the checkbox content into the label element' , ( ) => {
283- let label = < HTMLLabelElement > checkboxNativeElement . querySelector ( '.mat-checkbox-label' ) ;
283+ const label =
284+ < HTMLLabelElement > checkboxNativeElement . querySelector ( '.mat-checkbox-label' ) ;
284285 expect ( label . textContent ! . trim ( ) ) . toBe ( 'Simple checkbox' ) ;
285286 } ) ;
286287
@@ -690,7 +691,7 @@ describe('MatCheckbox', () => {
690691 } ) ;
691692
692693 it ( 'should emit the event to the change observable' , ( ) => {
693- let changeSpy = jasmine . createSpy ( 'onChangeObservable' ) ;
694+ const changeSpy = jasmine . createSpy ( 'onChangeObservable' ) ;
694695
695696 checkboxInstance . change . subscribe ( changeSpy ) ;
696697
@@ -916,7 +917,7 @@ describe('MatCheckbox', () => {
916917 } ) ;
917918
918919 it ( 'should assign a unique id to each checkbox' , ( ) => {
919- let [ firstId , secondId ] =
920+ const [ firstId , secondId ] =
920921 fixture . debugElement . queryAll ( By . directive ( MatCheckbox ) )
921922 . map ( debugElement => debugElement . nativeElement . querySelector ( 'input' ) . id ) ;
922923
@@ -926,7 +927,7 @@ describe('MatCheckbox', () => {
926927 } ) ;
927928
928929 it ( 'should not change focus origin if origin not specified' , ( ) => {
929- let [ firstCheckboxDebugEl , secondCheckboxDebugEl ] =
930+ const [ firstCheckboxDebugEl , secondCheckboxDebugEl ] =
930931 fixture . debugElement . queryAll ( By . directive ( MatCheckbox ) ) ;
931932 fixture . detectChanges ( ) ;
932933
@@ -1067,8 +1068,8 @@ describe('MatCheckbox', () => {
10671068 } ) ;
10681069
10691070 it ( 'should forward name value to input element' , ( ) => {
1070- let checkboxElement = fixture . debugElement . query ( By . directive ( MatCheckbox ) ) ! ;
1071- let inputElement = < HTMLInputElement > checkboxElement . nativeElement . querySelector ( 'input' ) ;
1071+ const checkboxElement = fixture . debugElement . query ( By . directive ( MatCheckbox ) ) ! ;
1072+ const inputElement = < HTMLInputElement > checkboxElement . nativeElement . querySelector ( 'input' ) ;
10721073
10731074 expect ( inputElement . getAttribute ( 'name' ) ) . toBe ( 'test-name' ) ;
10741075 } ) ;
0 commit comments