@@ -331,7 +331,7 @@ describe('MatSlider', () => {
331
331
332
332
// Computed by multiplying the difference between the min and the max by the percentage from
333
333
// the mousedown and adding that to the minimum.
334
- let value = Math . round ( 4 + ( 0.09 * ( 6 - 4 ) ) ) ;
334
+ const value = Math . round ( 4 + ( 0.09 * ( 6 - 4 ) ) ) ;
335
335
expect ( sliderInstance . value ) . toBe ( value ) ;
336
336
} ) ;
337
337
@@ -341,7 +341,7 @@ describe('MatSlider', () => {
341
341
342
342
// Computed by multiplying the difference between the min and the max by the percentage from
343
343
// the mousedown and adding that to the minimum.
344
- let value = Math . round ( 4 + ( 0.62 * ( 6 - 4 ) ) ) ;
344
+ const value = Math . round ( 4 + ( 0.62 * ( 6 - 4 ) ) ) ;
345
345
expect ( sliderInstance . value ) . toBe ( value ) ;
346
346
} ) ;
347
347
@@ -1136,10 +1136,10 @@ describe('MatSlider', () => {
1136
1136
testComponent . dir = 'rtl' ;
1137
1137
fixture . detectChanges ( ) ;
1138
1138
1139
- let initialTrackFillStyles = sliderInstance . _getTrackFillStyles ( ) ;
1140
- let initialTicksContainerStyles = sliderInstance . _getTicksContainerStyles ( ) ;
1141
- let initialTicksStyles = sliderInstance . _getTicksStyles ( ) ;
1142
- let initialThumbContainerStyles = sliderInstance . _getThumbContainerStyles ( ) ;
1139
+ const initialTrackFillStyles = sliderInstance . _getTrackFillStyles ( ) ;
1140
+ const initialTicksContainerStyles = sliderInstance . _getTicksContainerStyles ( ) ;
1141
+ const initialTicksStyles = sliderInstance . _getTicksStyles ( ) ;
1142
+ const initialThumbContainerStyles = sliderInstance . _getThumbContainerStyles ( ) ;
1143
1143
1144
1144
testComponent . dir = 'ltr' ;
1145
1145
fixture . detectChanges ( ) ;
@@ -1449,7 +1449,7 @@ describe('MatSlider', () => {
1449
1449
} ) ;
1450
1450
1451
1451
it ( 'should have the correct control state initially and after interaction' , ( ) => {
1452
- let sliderControl = testComponent . control ;
1452
+ const sliderControl = testComponent . control ;
1453
1453
1454
1454
// The control should start off valid, pristine, and untouched.
1455
1455
expect ( sliderControl . valid ) . toBe ( true ) ;
0 commit comments