Skip to content

Commit 14d397b

Browse files
committed
test(material/snack-bar): clean up unnecessary imports in tests
Removes imports from tests that aren't necessary anymore, because we're using standalone.
1 parent ead30fe commit 14d397b

File tree

2 files changed

+0
-17
lines changed

2 files changed

+0
-17
lines changed

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

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import {
1616
MAT_SNACK_BAR_DATA,
1717
MatSnackBar,
1818
MatSnackBarConfig,
19-
MatSnackBarModule,
2019
MatSnackBarRef,
2120
SimpleSnackBar,
2221
} from './index';
@@ -39,12 +38,6 @@ describe('MatSnackBar', () => {
3938

4039
beforeEach(fakeAsync(() => {
4140
TestBed.configureTestingModule({
42-
imports: [
43-
MatSnackBarModule,
44-
ComponentWithChildViewContainer,
45-
BurritosNotification,
46-
DirectiveWithViewContainer,
47-
],
4841
providers: [{provide: MATERIAL_ANIMATIONS, useValue: {animationsDisabled: true}}],
4942
});
5043

@@ -671,10 +664,6 @@ describe('MatSnackBar with parent MatSnackBar', () => {
671664
let fixture: ComponentFixture<ComponentThatProvidesMatSnackBar>;
672665

673666
beforeEach(fakeAsync(() => {
674-
TestBed.configureTestingModule({
675-
imports: [MatSnackBarModule, ComponentThatProvidesMatSnackBar, DirectiveWithViewContainer],
676-
});
677-
678667
parentSnackBar = TestBed.inject(MatSnackBar);
679668
overlayContainerElement = TestBed.inject(OverlayContainer).getContainerElement();
680669
fixture = TestBed.createComponent(ComponentThatProvidesMatSnackBar);
@@ -741,10 +730,6 @@ describe('MatSnackBar Positioning', () => {
741730
let simpleActionLabel = 'pickup';
742731

743732
beforeEach(fakeAsync(() => {
744-
TestBed.configureTestingModule({
745-
imports: [MatSnackBarModule, ComponentWithChildViewContainer, DirectiveWithViewContainer],
746-
});
747-
748733
snackBar = TestBed.inject(MatSnackBar);
749734
overlayContainerEl = TestBed.inject(OverlayContainer).getContainerElement();
750735
viewContainerFixture = TestBed.createComponent(ComponentWithChildViewContainer);

src/material/snack-bar/snack-bar.zone.spec.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import {
99
inject,
1010
} from '@angular/core';
1111
import {ComponentFixture, TestBed, fakeAsync, flush, tick} from '@angular/core/testing';
12-
import {MatSnackBarModule} from './snack-bar-module';
1312
import {MatSnackBar} from './snack-bar';
1413
import {MatSnackBarConfig} from './snack-bar-config';
1514
import {MATERIAL_ANIMATIONS} from '../core';
@@ -20,7 +19,6 @@ describe('MatSnackBar Zone.js integration', () => {
2019

2120
beforeEach(fakeAsync(() => {
2221
TestBed.configureTestingModule({
23-
imports: [MatSnackBarModule, ComponentWithChildViewContainer, DirectiveWithViewContainer],
2422
providers: [
2523
provideZoneChangeDetection(),
2624
{provide: MATERIAL_ANIMATIONS, useValue: {animationsDisabled: true}},

0 commit comments

Comments
 (0)