11import { AsyncPipe } from '@angular/common' ;
22import { CdkTableModule } from '@angular/cdk/table' ;
33import { ChangeDetectorRef , Component , ElementRef , ViewChild , inject } from '@angular/core' ;
4- import { waitForAsync , ComponentFixture , fakeAsync , flush , TestBed } from '@angular/core/testing' ;
4+ import { ComponentFixture , fakeAsync , flush , TestBed } from '@angular/core/testing' ;
55
66import { CdkSelection } from './selection' ;
77import { CdkSelectionModule } from './selection-module' ;
@@ -11,12 +11,6 @@ describe('CdkSelection', () => {
1111 let fixture : ComponentFixture < ListWithMultiSelection > ;
1212 let component : ListWithMultiSelection ;
1313
14- beforeEach ( waitForAsync ( ( ) => {
15- TestBed . configureTestingModule ( {
16- imports : [ CdkSelectionModule , ListWithMultiSelection ] ,
17- } ) ;
18- } ) ) ;
19-
2014 beforeEach ( ( ) => {
2115 fixture = TestBed . createComponent ( ListWithMultiSelection ) ;
2216 component = fixture . componentInstance ;
@@ -237,12 +231,6 @@ describe('CdkSelection with multiple = false', () => {
237231 let fixture : ComponentFixture < ListWithSingleSelection > ;
238232 let component : ListWithSingleSelection ;
239233
240- beforeEach ( waitForAsync ( ( ) => {
241- TestBed . configureTestingModule ( {
242- imports : [ CdkSelectionModule , ListWithSingleSelection ] ,
243- } ) ;
244- } ) ) ;
245-
246234 beforeEach ( ( ) => {
247235 fixture = TestBed . createComponent ( ListWithSingleSelection ) ;
248236 component = fixture . componentInstance ;
@@ -302,12 +290,6 @@ describe('cdkSelectionColumn', () => {
302290 let fixture : ComponentFixture < MultiSelectTableWithSelectionColumn > ;
303291 let component : MultiSelectTableWithSelectionColumn ;
304292
305- beforeEach ( waitForAsync ( ( ) => {
306- TestBed . configureTestingModule ( {
307- imports : [ CdkSelectionModule , CdkTableModule , MultiSelectTableWithSelectionColumn ] ,
308- } ) ;
309- } ) ) ;
310-
311293 beforeEach ( fakeAsync ( ( ) => {
312294 fixture = TestBed . createComponent ( MultiSelectTableWithSelectionColumn ) ;
313295 component = fixture . componentInstance ;
@@ -397,12 +379,6 @@ describe('cdkSelectionColumn with multiple = false', () => {
397379 let fixture : ComponentFixture < SingleSelectTableWithSelectionColumn > ;
398380 let component : SingleSelectTableWithSelectionColumn ;
399381
400- beforeEach ( waitForAsync ( ( ) => {
401- TestBed . configureTestingModule ( {
402- imports : [ CdkSelectionModule , CdkTableModule , SingleSelectTableWithSelectionColumn ] ,
403- } ) ;
404- } ) ) ;
405-
406382 beforeEach ( ( ) => {
407383 fixture = TestBed . createComponent ( SingleSelectTableWithSelectionColumn ) ;
408384 component = fixture . componentInstance ;
0 commit comments