Skip to content

Commit e77e68e

Browse files
committed
refactor(material/bottom-sheet): refactor variable type to const in bottom-sheet component unit tests
1 parent 23dfbbb commit e77e68e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/material/bottom-sheet/bottom-sheet.spec.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ describe('MatBottomSheet', () => {
189189

190190
viewContainerFixture.detectChanges();
191191

192-
let backdrop = overlayContainerElement.querySelector('.cdk-overlay-backdrop') as HTMLElement;
192+
const backdrop = overlayContainerElement.querySelector('.cdk-overlay-backdrop') as HTMLElement;
193193

194194
backdrop.click();
195195
viewContainerFixture.detectChanges();
@@ -252,7 +252,7 @@ describe('MatBottomSheet', () => {
252252

253253
viewContainerFixture.detectChanges();
254254

255-
let overlayPane = overlayContainerElement.querySelector('.cdk-global-overlay-wrapper')!;
255+
const overlayPane = overlayContainerElement.querySelector('.cdk-global-overlay-wrapper')!;
256256

257257
expect(overlayPane.getAttribute('dir')).toBe('rtl');
258258
});
@@ -320,7 +320,7 @@ describe('MatBottomSheet', () => {
320320
}));
321321

322322
it('should open a new bottom sheet after dismissing a previous sheet', fakeAsync(() => {
323-
let config: MatBottomSheetConfig = {viewContainerRef: testViewContainerRef};
323+
const config: MatBottomSheetConfig = {viewContainerRef: testViewContainerRef};
324324
let bottomSheetRef: MatBottomSheetRef<any> = bottomSheet.open(PizzaMsg, config);
325325

326326
viewContainerFixture.detectChanges();
@@ -495,7 +495,7 @@ describe('MatBottomSheet', () => {
495495

496496
viewContainerFixture.detectChanges();
497497

498-
let backdrop = overlayContainerElement.querySelector('.cdk-overlay-backdrop') as HTMLElement;
498+
const backdrop = overlayContainerElement.querySelector('.cdk-overlay-backdrop') as HTMLElement;
499499
backdrop.click();
500500
viewContainerFixture.detectChanges();
501501
flush();
@@ -518,14 +518,14 @@ describe('MatBottomSheet', () => {
518518
}));
519519

520520
it('should allow for the disableClose option to be updated while open', fakeAsync(() => {
521-
let bottomSheetRef = bottomSheet.open(PizzaMsg, {
521+
const bottomSheetRef = bottomSheet.open(PizzaMsg, {
522522
disableClose: true,
523523
viewContainerRef: testViewContainerRef
524524
});
525525

526526
viewContainerFixture.detectChanges();
527527

528-
let backdrop = overlayContainerElement.querySelector('.cdk-overlay-backdrop') as HTMLElement;
528+
const backdrop = overlayContainerElement.querySelector('.cdk-overlay-backdrop') as HTMLElement;
529529
backdrop.click();
530530

531531
expect(overlayContainerElement.querySelector('mat-bottom-sheet-container')).toBeTruthy();

0 commit comments

Comments
 (0)