@@ -47,7 +47,6 @@ import {
47
47
MatDialogActions ,
48
48
MatDialogClose ,
49
49
MatDialogContent ,
50
- MatDialogModule ,
51
50
MatDialogRef ,
52
51
MatDialogState ,
53
52
MatDialogTitle ,
@@ -66,17 +65,6 @@ describe('MatDialog', () => {
66
65
67
66
beforeEach ( fakeAsync ( ( ) => {
68
67
TestBed . configureTestingModule ( {
69
- imports : [
70
- MatDialogModule ,
71
- ComponentWithChildViewContainer ,
72
- ComponentWithTemplateRef ,
73
- PizzaMsg ,
74
- ContentElementDialog ,
75
- DialogWithInjectedData ,
76
- DialogWithoutFocusableElements ,
77
- DirectiveWithViewContainer ,
78
- ComponentWithContentElementTemplateRef ,
79
- ] ,
80
68
providers : [
81
69
{ provide : Location , useClass : SpyLocation } ,
82
70
{ provide : MATERIAL_ANIMATIONS , useValue : { animationsDisabled : true } } ,
@@ -2035,7 +2023,6 @@ describe('MatDialog with a parent MatDialog', () => {
2035
2023
2036
2024
beforeEach ( fakeAsync ( ( ) => {
2037
2025
TestBed . configureTestingModule ( {
2038
- imports : [ MatDialogModule , ComponentThatProvidesMatDialog ] ,
2039
2026
providers : [
2040
2027
{
2041
2028
provide : OverlayContainer ,
@@ -2144,7 +2131,6 @@ describe('MatDialog with default options', () => {
2144
2131
} ;
2145
2132
2146
2133
TestBed . configureTestingModule ( {
2147
- imports : [ MatDialogModule , ComponentWithChildViewContainer , DirectiveWithViewContainer ] ,
2148
2134
providers : [
2149
2135
{ provide : MAT_DIALOG_DEFAULT_OPTIONS , useValue : defaultConfig } ,
2150
2136
{ provide : MATERIAL_ANIMATIONS , useValue : { animationsDisabled : true } } ,
@@ -2205,10 +2191,6 @@ describe('MatDialog with animations enabled', () => {
2205
2191
let viewContainerFixture : ComponentFixture < ComponentWithChildViewContainer > ;
2206
2192
2207
2193
beforeEach ( fakeAsync ( ( ) => {
2208
- TestBed . configureTestingModule ( {
2209
- imports : [ MatDialogModule , ComponentWithChildViewContainer , DirectiveWithViewContainer ] ,
2210
- } ) ;
2211
-
2212
2194
dialog = TestBed . inject ( MatDialog ) ;
2213
2195
viewContainerFixture = TestBed . createComponent ( ComponentWithChildViewContainer ) ;
2214
2196
viewContainerFixture . detectChanges ( ) ;
@@ -2259,10 +2241,6 @@ describe('MatDialog with explicit injector provided', () => {
2259
2241
let fixture : ComponentFixture < ModuleBoundDialogParentComponent > ;
2260
2242
2261
2243
beforeEach ( fakeAsync ( ( ) => {
2262
- TestBed . configureTestingModule ( {
2263
- imports : [ MatDialogModule , ModuleBoundDialogParentComponent ] ,
2264
- } ) ;
2265
-
2266
2244
overlayContainerElement = TestBed . inject ( OverlayContainer ) . getContainerElement ( ) ;
2267
2245
fixture = TestBed . createComponent ( ModuleBoundDialogParentComponent ) ;
2268
2246
} ) ) ;
0 commit comments