@@ -280,7 +280,8 @@ describe('MatCheckbox', () => {
280
280
} ) ;
281
281
282
282
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' ) ;
284
285
expect ( label . textContent ! . trim ( ) ) . toBe ( 'Simple checkbox' ) ;
285
286
} ) ;
286
287
@@ -690,7 +691,7 @@ describe('MatCheckbox', () => {
690
691
} ) ;
691
692
692
693
it ( 'should emit the event to the change observable' , ( ) => {
693
- let changeSpy = jasmine . createSpy ( 'onChangeObservable' ) ;
694
+ const changeSpy = jasmine . createSpy ( 'onChangeObservable' ) ;
694
695
695
696
checkboxInstance . change . subscribe ( changeSpy ) ;
696
697
@@ -916,7 +917,7 @@ describe('MatCheckbox', () => {
916
917
} ) ;
917
918
918
919
it ( 'should assign a unique id to each checkbox' , ( ) => {
919
- let [ firstId , secondId ] =
920
+ const [ firstId , secondId ] =
920
921
fixture . debugElement . queryAll ( By . directive ( MatCheckbox ) )
921
922
. map ( debugElement => debugElement . nativeElement . querySelector ( 'input' ) . id ) ;
922
923
@@ -926,7 +927,7 @@ describe('MatCheckbox', () => {
926
927
} ) ;
927
928
928
929
it ( 'should not change focus origin if origin not specified' , ( ) => {
929
- let [ firstCheckboxDebugEl , secondCheckboxDebugEl ] =
930
+ const [ firstCheckboxDebugEl , secondCheckboxDebugEl ] =
930
931
fixture . debugElement . queryAll ( By . directive ( MatCheckbox ) ) ;
931
932
fixture . detectChanges ( ) ;
932
933
@@ -1067,8 +1068,8 @@ describe('MatCheckbox', () => {
1067
1068
} ) ;
1068
1069
1069
1070
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' ) ;
1072
1073
1073
1074
expect ( inputElement . getAttribute ( 'name' ) ) . toBe ( 'test-name' ) ;
1074
1075
} ) ;
0 commit comments