Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions src/material/bottom-sheet/bottom-sheet.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ describe('MatBottomSheet', () => {

viewContainerFixture.detectChanges();

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

backdrop.click();
viewContainerFixture.detectChanges();
Expand Down Expand Up @@ -252,7 +252,7 @@ describe('MatBottomSheet', () => {

viewContainerFixture.detectChanges();

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

expect(overlayPane.getAttribute('dir')).toBe('rtl');
});
Expand Down Expand Up @@ -320,7 +320,7 @@ describe('MatBottomSheet', () => {
}));

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

viewContainerFixture.detectChanges();
Expand Down Expand Up @@ -495,7 +495,8 @@ describe('MatBottomSheet', () => {

viewContainerFixture.detectChanges();

let backdrop = overlayContainerElement.querySelector('.cdk-overlay-backdrop') as HTMLElement;
const backdrop =
overlayContainerElement.querySelector('.cdk-overlay-backdrop') as HTMLElement;
backdrop.click();
viewContainerFixture.detectChanges();
flush();
Expand All @@ -518,14 +519,15 @@ describe('MatBottomSheet', () => {
}));

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

viewContainerFixture.detectChanges();

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

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