Skip to content

Commit d33dead

Browse files
committed
test(multiple): remove usage of deprecated API
Removes usages of a deprecated API in the dialog and bottom sheet tests.
1 parent f0db4dd commit d33dead

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import {SpyLocation} from '@angular/common/testing';
1313
import {
1414
Component,
1515
ComponentRef,
16-
createNgModuleRef,
16+
createNgModule,
1717
Directive,
1818
Injectable,
1919
Injector,
@@ -1098,7 +1098,7 @@ class ModuleBoundBottomSheetParentComponent {
10981098
private _bottomSheet = inject(MatBottomSheet);
10991099

11001100
openBottomSheet(): void {
1101-
const ngModuleRef = createNgModuleRef(
1101+
const ngModuleRef = createNgModule(
11021102
ModuleBoundBottomSheetModule,
11031103
/* parentInjector */ this._injector,
11041104
);

src/material/dialog/dialog.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import {SpyLocation} from '@angular/common/testing';
1616
import {
1717
ChangeDetectionStrategy,
1818
Component,
19-
createNgModuleRef,
19+
createNgModule,
2020
Directive,
2121
Injectable,
2222
Injector,
@@ -2445,7 +2445,7 @@ class ModuleBoundDialogParentComponent {
24452445
private _dialog = inject(MatDialog);
24462446

24472447
openDialog(): void {
2448-
const ngModuleRef = createNgModuleRef(
2448+
const ngModuleRef = createNgModule(
24492449
ModuleBoundDialogModule,
24502450
/* parentInjector */ this._injector,
24512451
);

0 commit comments

Comments
 (0)