Skip to content

Commit 9310a98

Browse files
committed
test(material/core): clean up unnecessary imports in tests
Removes imports from tests that aren't necessary anymore, because we're using standalone.
1 parent 750b35c commit 9310a98

File tree

5 files changed

+0
-36
lines changed

5 files changed

+0
-36
lines changed

src/material/core/option/option.spec.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,6 @@ import {SPACE, ENTER} from '@angular/cdk/keycodes';
1111
import {MatOption, MatOptionModule, MAT_OPTION_PARENT_COMPONENT} from './index';
1212

1313
describe('MatOption component', () => {
14-
beforeEach(waitForAsync(() => {
15-
TestBed.configureTestingModule({
16-
imports: [MatOptionModule, BasicOption],
17-
});
18-
}));
19-
2014
it('should complete the `stateChanges` stream on destroy', () => {
2115
const fixture = TestBed.createComponent(BasicOption);
2216
fixture.detectChanges();
@@ -214,7 +208,6 @@ describe('MatOption component', () => {
214208
beforeEach(waitForAsync(() => {
215209
TestBed.resetTestingModule();
216210
TestBed.configureTestingModule({
217-
imports: [MatOptionModule, InsideGroup],
218211
providers: [
219212
{
220213
provide: MAT_OPTION_PARENT_COMPONENT,

src/material/core/ripple/ripple.spec.ts

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -36,19 +36,6 @@ describe('MatRipple', () => {
3636
}
3737

3838
beforeEach(() => {
39-
TestBed.configureTestingModule({
40-
imports: [
41-
MatRippleModule,
42-
BasicRippleContainer,
43-
RippleContainerWithInputBindings,
44-
RippleContainerWithoutBindings,
45-
RippleContainerWithNgIf,
46-
RippleCssTransitionNone,
47-
RippleCssTransitionDurationZero,
48-
RippleWithDomRemovalOnClick,
49-
],
50-
});
51-
5239
platform = TestBed.inject(Platform);
5340

5441
// Set body margin to 0 during tests so it doesn't mess up position calculations.
@@ -500,7 +487,6 @@ describe('MatRipple', () => {
500487
// The testing module has been initialized in the root describe group for the ripples.
501488
TestBed.resetTestingModule();
502489
TestBed.configureTestingModule({
503-
imports: [MatRippleModule, testComponent],
504490
providers: [
505491
{provide: MAT_RIPPLE_GLOBAL_OPTIONS, useValue: rippleConfig},
506492
...extraProviders,
@@ -605,7 +591,6 @@ describe('MatRipple', () => {
605591
beforeEach(() => {
606592
TestBed.resetTestingModule();
607593
TestBed.configureTestingModule({
608-
imports: [MatRippleModule, BasicRippleContainer],
609594
providers: [{provide: MATERIAL_ANIMATIONS, useValue: {animationsDisabled: true}}],
610595
});
611596

src/material/core/ripple/ripple.zone.spec.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,6 @@ describe('MatRipple Zone.js integration', () => {
99
let rippleTarget: HTMLElement;
1010
let originalBodyMargin: string | null;
1111

12-
beforeEach(() => {
13-
TestBed.configureTestingModule({
14-
imports: [MatRippleModule, BasicRippleContainer],
15-
});
16-
});
17-
1812
beforeEach(() => {
1913
// Set body margin to 0 during tests so it doesn't mess up position calculations.
2014
originalBodyMargin = document.body.style.margin;

src/material/core/testing/optgroup-harness.spec.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@ describe('MatOptgroupHarness', () => {
1010
let loader: HarnessLoader;
1111

1212
beforeEach(() => {
13-
TestBed.configureTestingModule({
14-
imports: [MatOptionModule, OptgroupHarnessTest],
15-
});
16-
1713
fixture = TestBed.createComponent(OptgroupHarnessTest);
1814
fixture.detectChanges();
1915
loader = TestbedHarnessEnvironment.loader(fixture);

src/material/core/testing/option-harness.spec.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,6 @@ describe('MatOptionHarness', () => {
1515
let loader: HarnessLoader;
1616

1717
beforeEach(() => {
18-
TestBed.configureTestingModule({
19-
imports: [MatOptionModule, OptionHarnessTest],
20-
});
21-
2218
fixture = TestBed.createComponent(OptionHarnessTest);
2319
fixture.detectChanges();
2420
loader = TestbedHarnessEnvironment.loader(fixture);

0 commit comments

Comments
 (0)