Skip to content

Commit 750b35c

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

12 files changed

+1
-53
lines changed

src/material/chips/chip-edit-input.spec.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@ describe('MatChipEditInput', () => {
1111
let inputInstance: MatChipEditInput;
1212

1313
beforeEach(waitForAsync(() => {
14-
TestBed.configureTestingModule({
15-
imports: [MatChipsModule, ChipEditInputContainer],
16-
});
17-
1814
fixture = TestBed.createComponent(ChipEditInputContainer);
1915
inputDebugElement = fixture.debugElement.query(By.directive(MatChipEditInput))!;
2016
inputInstance = inputDebugElement.injector.get<MatChipEditInput>(MatChipEditInput);

src/material/chips/chip-remove.spec.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,6 @@ describe('Chip Remove', () => {
1010
let testChip: TestChip;
1111
let chipNativeElement: HTMLElement;
1212

13-
beforeEach(waitForAsync(() => {
14-
TestBed.configureTestingModule({
15-
imports: [MatChipsModule, TestChip],
16-
});
17-
}));
18-
1913
beforeEach(waitForAsync(() => {
2014
fixture = TestBed.createComponent(TestChip);
2115
testChip = fixture.debugElement.componentInstance;

src/material/chips/chip-row.spec.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ describe('Row Chips', () => {
2727

2828
beforeEach(waitForAsync(() => {
2929
TestBed.configureTestingModule({
30-
imports: [MatChipsModule, SingleChip],
3130
providers: [provideFakeDirectionality('ltr')],
3231
});
3332
}));

src/material/chips/chip-set.spec.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,9 @@
11
import {Component, DebugElement, QueryList} from '@angular/core';
2-
import {ComponentFixture, TestBed, fakeAsync, tick, waitForAsync} from '@angular/core/testing';
2+
import {ComponentFixture, TestBed, fakeAsync, tick} from '@angular/core/testing';
33
import {By} from '@angular/platform-browser';
44
import {MatChip, MatChipSet, MatChipsModule} from './index';
55

66
describe('MatChipSet', () => {
7-
beforeEach(waitForAsync(() => {
8-
TestBed.configureTestingModule({
9-
imports: [MatChipsModule, BasicChipSet, IndirectDescendantsChipSet],
10-
});
11-
}));
12-
137
describe('BasicChipSet', () => {
148
let fixture: ComponentFixture<any>;
159
let chipSetDebugElement: DebugElement;

src/material/chips/chip.spec.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,6 @@ describe('MatChip', () => {
1212

1313
beforeEach(waitForAsync(() => {
1414
TestBed.configureTestingModule({
15-
imports: [
16-
MatChipsModule,
17-
BasicChip,
18-
SingleChip,
19-
BasicChipWithStaticTabindex,
20-
BasicChipWithBoundTabindex,
21-
],
2215
providers: [provideFakeDirectionality('ltr')],
2316
});
2417
}));

src/material/chips/testing/chip-grid-harness.spec.ts

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

1313
beforeEach(() => {
14-
TestBed.configureTestingModule({
15-
imports: [MatChipsModule, ReactiveFormsModule, ChipGridHarnessTest],
16-
});
17-
1814
fixture = TestBed.createComponent(ChipGridHarnessTest);
1915
fixture.detectChanges();
2016
loader = TestbedHarnessEnvironment.loader(fixture);

src/material/chips/testing/chip-harness.spec.ts

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

1414
beforeEach(() => {
15-
TestBed.configureTestingModule({
16-
imports: [MatChipsModule, MatIconModule, ChipHarnessTest],
17-
});
18-
1915
fixture = TestBed.createComponent(ChipHarnessTest);
2016
fixture.detectChanges();
2117
loader = TestbedHarnessEnvironment.loader(fixture);

src/material/chips/testing/chip-input-harness.spec.ts

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

1313
beforeEach(() => {
14-
TestBed.configureTestingModule({
15-
imports: [MatChipsModule, ChipInputHarnessTest],
16-
});
17-
1814
fixture = TestBed.createComponent(ChipInputHarnessTest);
1915
fixture.detectChanges();
2016
loader = TestbedHarnessEnvironment.loader(fixture);

src/material/chips/testing/chip-listbox-harness.spec.ts

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

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

src/material/chips/testing/chip-option-harness.spec.ts

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

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

0 commit comments

Comments
 (0)