Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 8cda5c5

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

File tree

2 files changed

+1
-17
lines changed

2 files changed

+1
-17
lines changed

‎src/material/toolbar/testing/toolbar-harness.spec.ts

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

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

‎src/material/toolbar/toolbar.spec.ts

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,9 @@
11
import {Component, signal} from '@angular/core';
2-
import {ComponentFixture, TestBed,waitForAsync} from '@angular/core/testing';
2+
import {ComponentFixture, TestBed} from '@angular/core/testing';
33
import {By} from '@angular/platform-browser';
44
import {MatToolbarModule} from './index';
55

66
describe('MatToolbar', () => {
7-
beforeEach(waitForAsync(() => {
8-
TestBed.configureTestingModule({
9-
imports: [
10-
MatToolbarModule,
11-
ToolbarSingleRow,
12-
ToolbarMultipleRows,
13-
ToolbarMixedRowModes,
14-
ToolbarMultipleIndirectRows,
15-
],
16-
});
17-
}));
18-
197
describe('with single row', () => {
208
let fixture: ComponentFixture<ToolbarSingleRow>;
219
let testComponent: ToolbarSingleRow;

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /