Skip to content

Commit 76f1bc1

Browse files
committed
test(material/progress-bar): clean up unnecessary imports in tests
Removes imports from tests that aren't necessary anymore, because we're using standalone.
1 parent 8f0bde9 commit 76f1bc1

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

src/material/progress-bar/progress-bar.spec.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,15 @@ import {
99
} from '@angular/core';
1010
import {ComponentFixture, TestBed} from '@angular/core/testing';
1111
import {By} from '@angular/platform-browser';
12-
import {MAT_PROGRESS_BAR_DEFAULT_OPTIONS, MatProgressBarModule} from './index';
12+
import {MAT_PROGRESS_BAR_DEFAULT_OPTIONS} from './index';
1313
import {MatProgressBar} from './progress-bar';
1414

1515
describe('MatProgressBar', () => {
1616
function createComponent<T>(
1717
componentType: Type<T>,
1818
providers: (Provider | EnvironmentProviders)[] = [],
1919
): ComponentFixture<T> {
20-
TestBed.configureTestingModule({
21-
imports: [MatProgressBarModule, componentType],
22-
providers,
23-
});
24-
20+
TestBed.configureTestingModule({providers});
2521
return TestBed.createComponent<T>(componentType);
2622
}
2723

src/material/progress-bar/testing/progress-bar-harness.spec.ts

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

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

0 commit comments

Comments
 (0)