@@ -25,23 +25,6 @@ import {MATERIAL_ANIMATIONS} from '../core';
25
25
describe ( 'MatTabGroup' , ( ) => {
26
26
beforeEach ( fakeAsync ( ( ) => {
27
27
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
- ] ,
45
28
providers : [ { provide : MATERIAL_ANIMATIONS , useValue : { animationsDisabled : true } } ] ,
46
29
} ) ;
47
30
} ) ) ;
@@ -1057,12 +1040,6 @@ describe('MatTabGroup', () => {
1057
1040
} ) ;
1058
1041
1059
1042
describe ( 'nested MatTabGroup with enabled animations' , ( ) => {
1060
- beforeEach ( fakeAsync ( ( ) => {
1061
- TestBed . configureTestingModule ( {
1062
- imports : [ MatTabsModule , NestedTabs , TabsWithCustomAnimationDuration ] ,
1063
- } ) ;
1064
- } ) ) ;
1065
-
1066
1043
it ( 'should not throw when creating a component with nested tab groups' , fakeAsync ( ( ) => {
1067
1044
expect ( ( ) => {
1068
1045
let fixture = TestBed . createComponent ( NestedTabs ) ;
@@ -1092,12 +1069,6 @@ describe('nested MatTabGroup with enabled animations', () => {
1092
1069
describe ( 'MatTabGroup with ink bar fit to content' , ( ) => {
1093
1070
let fixture : ComponentFixture < TabGroupWithInkBarFitToContent > ;
1094
1071
1095
- beforeEach ( fakeAsync ( ( ) => {
1096
- TestBed . configureTestingModule ( {
1097
- imports : [ MatTabsModule , TabGroupWithInkBarFitToContent ] ,
1098
- } ) ;
1099
- } ) ) ;
1100
-
1101
1072
beforeEach ( ( ) => {
1102
1073
fixture = TestBed . createComponent ( TabGroupWithInkBarFitToContent ) ;
1103
1074
fixture . detectChanges ( ) ;
@@ -1136,7 +1107,6 @@ describe('MatTabNavBar with a default config', () => {
1136
1107
1137
1108
beforeEach ( fakeAsync ( ( ) => {
1138
1109
TestBed . configureTestingModule ( {
1139
- imports : [ MatTabsModule , SimpleTabsTestApp ] ,
1140
1110
providers : [
1141
1111
{
1142
1112
provide : MAT_TABS_CONFIG ,
@@ -1167,7 +1137,6 @@ describe('MatTabNavBar with a default config', () => {
1167
1137
describe ( 'MatTabGroup labels aligned with a config' , ( ) => {
1168
1138
it ( 'should work with start align' , ( ) => {
1169
1139
const fixture = TestBed . configureTestingModule ( {
1170
- imports : [ MatTabsModule , TabsWithAlignConfig ] ,
1171
1140
providers : [
1172
1141
{
1173
1142
provide : MAT_TABS_CONFIG ,
@@ -1183,7 +1152,6 @@ describe('MatTabGroup labels aligned with a config', () => {
1183
1152
1184
1153
it ( 'should work with center align' , ( ) => {
1185
1154
const fixture = TestBed . configureTestingModule ( {
1186
- imports : [ MatTabsModule , TabsWithAlignConfig ] ,
1187
1155
providers : [
1188
1156
{
1189
1157
provide : MAT_TABS_CONFIG ,
@@ -1199,7 +1167,6 @@ describe('MatTabGroup labels aligned with a config', () => {
1199
1167
1200
1168
it ( 'should work with end align' , ( ) => {
1201
1169
const fixture = TestBed . configureTestingModule ( {
1202
- imports : [ MatTabsModule , TabsWithAlignConfig ] ,
1203
1170
providers : [
1204
1171
{
1205
1172
provide : MAT_TABS_CONFIG ,
@@ -1214,9 +1181,7 @@ describe('MatTabGroup labels aligned with a config', () => {
1214
1181
} ) ;
1215
1182
1216
1183
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 ) ;
1220
1185
fixture . detectChanges ( ) ;
1221
1186
1222
1187
let tabElement = fixture . nativeElement . querySelector ( '[mat-align-tabs="start"]' ) ;
@@ -1234,7 +1199,6 @@ describe('MatTabGroup labels aligned with a config', () => {
1234
1199
1235
1200
it ( 'should not break if config sets align on already aligned tabs' , ( ) => {
1236
1201
const fixture = TestBed . configureTestingModule ( {
1237
- imports : [ MatTabsModule , TabsWithAlignCenter ] ,
1238
1202
providers : [ { provide : MAT_TABS_CONFIG , useValue : { alignTabs : 'end' } } ] ,
1239
1203
} ) . createComponent ( TabsWithAlignCenter ) ;
1240
1204
fixture . detectChanges ( ) ;
0 commit comments