@@ -25,23 +25,6 @@ import {MATERIAL_ANIMATIONS} from '../core';
2525describe ( 'MatTabGroup' , ( ) => {
2626 beforeEach ( fakeAsync ( ( ) => {
2727 TestBed . configureTestingModule ( {
28- imports : [
29- MatTabsModule ,
30- SimpleTabsTestApp ,
31- SimpleDynamicTabsTestApp ,
32- BindedTabsTestApp ,
33- AsyncTabsTestApp ,
34- DisabledTabsTestApp ,
35- TabGroupWithSimpleApi ,
36- TemplateTabs ,
37- TabGroupWithAriaInputs ,
38- TabGroupWithIsActiveBinding ,
39- NestedTabs ,
40- TabGroupWithIndirectDescendantTabs ,
41- TabGroupWithSpaceAbove ,
42- NestedTabGroupWithLabel ,
43- TabsWithClassesTestApp ,
44- ] ,
4528 providers : [ { provide : MATERIAL_ANIMATIONS , useValue : { animationsDisabled : true } } ] ,
4629 } ) ;
4730 } ) ) ;
@@ -1057,12 +1040,6 @@ describe('MatTabGroup', () => {
10571040} ) ;
10581041
10591042describe ( 'nested MatTabGroup with enabled animations' , ( ) => {
1060- beforeEach ( fakeAsync ( ( ) => {
1061- TestBed . configureTestingModule ( {
1062- imports : [ MatTabsModule , NestedTabs , TabsWithCustomAnimationDuration ] ,
1063- } ) ;
1064- } ) ) ;
1065-
10661043 it ( 'should not throw when creating a component with nested tab groups' , fakeAsync ( ( ) => {
10671044 expect ( ( ) => {
10681045 let fixture = TestBed . createComponent ( NestedTabs ) ;
@@ -1092,12 +1069,6 @@ describe('nested MatTabGroup with enabled animations', () => {
10921069describe ( 'MatTabGroup with ink bar fit to content' , ( ) => {
10931070 let fixture : ComponentFixture < TabGroupWithInkBarFitToContent > ;
10941071
1095- beforeEach ( fakeAsync ( ( ) => {
1096- TestBed . configureTestingModule ( {
1097- imports : [ MatTabsModule , TabGroupWithInkBarFitToContent ] ,
1098- } ) ;
1099- } ) ) ;
1100-
11011072 beforeEach ( ( ) => {
11021073 fixture = TestBed . createComponent ( TabGroupWithInkBarFitToContent ) ;
11031074 fixture . detectChanges ( ) ;
@@ -1136,7 +1107,6 @@ describe('MatTabNavBar with a default config', () => {
11361107
11371108 beforeEach ( fakeAsync ( ( ) => {
11381109 TestBed . configureTestingModule ( {
1139- imports : [ MatTabsModule , SimpleTabsTestApp ] ,
11401110 providers : [
11411111 {
11421112 provide : MAT_TABS_CONFIG ,
@@ -1167,7 +1137,6 @@ describe('MatTabNavBar with a default config', () => {
11671137describe ( 'MatTabGroup labels aligned with a config' , ( ) => {
11681138 it ( 'should work with start align' , ( ) => {
11691139 const fixture = TestBed . configureTestingModule ( {
1170- imports : [ MatTabsModule , TabsWithAlignConfig ] ,
11711140 providers : [
11721141 {
11731142 provide : MAT_TABS_CONFIG ,
@@ -1183,7 +1152,6 @@ describe('MatTabGroup labels aligned with a config', () => {
11831152
11841153 it ( 'should work with center align' , ( ) => {
11851154 const fixture = TestBed . configureTestingModule ( {
1186- imports : [ MatTabsModule , TabsWithAlignConfig ] ,
11871155 providers : [
11881156 {
11891157 provide : MAT_TABS_CONFIG ,
@@ -1199,7 +1167,6 @@ describe('MatTabGroup labels aligned with a config', () => {
11991167
12001168 it ( 'should work with end align' , ( ) => {
12011169 const fixture = TestBed . configureTestingModule ( {
1202- imports : [ MatTabsModule , TabsWithAlignConfig ] ,
12031170 providers : [
12041171 {
12051172 provide : MAT_TABS_CONFIG ,
@@ -1214,9 +1181,7 @@ describe('MatTabGroup labels aligned with a config', () => {
12141181 } ) ;
12151182
12161183 it ( 'should not add align if default config doesnt set align' , ( ) => {
1217- const fixture = TestBed . configureTestingModule ( {
1218- imports : [ MatTabsModule , TabsWithAlignConfig ] ,
1219- } ) . createComponent ( TabsWithAlignConfig ) ;
1184+ const fixture = TestBed . createComponent ( TabsWithAlignConfig ) ;
12201185 fixture . detectChanges ( ) ;
12211186
12221187 let tabElement = fixture . nativeElement . querySelector ( '[mat-align-tabs="start"]' ) ;
@@ -1234,7 +1199,6 @@ describe('MatTabGroup labels aligned with a config', () => {
12341199
12351200 it ( 'should not break if config sets align on already aligned tabs' , ( ) => {
12361201 const fixture = TestBed . configureTestingModule ( {
1237- imports : [ MatTabsModule , TabsWithAlignCenter ] ,
12381202 providers : [ { provide : MAT_TABS_CONFIG , useValue : { alignTabs : 'end' } } ] ,
12391203 } ) . createComponent ( TabsWithAlignCenter ) ;
12401204 fixture . detectChanges ( ) ;
0 commit comments