1
1
import { AsyncPipe } from '@angular/common' ;
2
2
import { CdkTableModule } from '@angular/cdk/table' ;
3
3
import { 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' ;
5
5
6
6
import { CdkSelection } from './selection' ;
7
7
import { CdkSelectionModule } from './selection-module' ;
@@ -11,12 +11,6 @@ describe('CdkSelection', () => {
11
11
let fixture : ComponentFixture < ListWithMultiSelection > ;
12
12
let component : ListWithMultiSelection ;
13
13
14
- beforeEach ( waitForAsync ( ( ) => {
15
- TestBed . configureTestingModule ( {
16
- imports : [ CdkSelectionModule , ListWithMultiSelection ] ,
17
- } ) ;
18
- } ) ) ;
19
-
20
14
beforeEach ( ( ) => {
21
15
fixture = TestBed . createComponent ( ListWithMultiSelection ) ;
22
16
component = fixture . componentInstance ;
@@ -237,12 +231,6 @@ describe('CdkSelection with multiple = false', () => {
237
231
let fixture : ComponentFixture < ListWithSingleSelection > ;
238
232
let component : ListWithSingleSelection ;
239
233
240
- beforeEach ( waitForAsync ( ( ) => {
241
- TestBed . configureTestingModule ( {
242
- imports : [ CdkSelectionModule , ListWithSingleSelection ] ,
243
- } ) ;
244
- } ) ) ;
245
-
246
234
beforeEach ( ( ) => {
247
235
fixture = TestBed . createComponent ( ListWithSingleSelection ) ;
248
236
component = fixture . componentInstance ;
@@ -302,12 +290,6 @@ describe('cdkSelectionColumn', () => {
302
290
let fixture : ComponentFixture < MultiSelectTableWithSelectionColumn > ;
303
291
let component : MultiSelectTableWithSelectionColumn ;
304
292
305
- beforeEach ( waitForAsync ( ( ) => {
306
- TestBed . configureTestingModule ( {
307
- imports : [ CdkSelectionModule , CdkTableModule , MultiSelectTableWithSelectionColumn ] ,
308
- } ) ;
309
- } ) ) ;
310
-
311
293
beforeEach ( fakeAsync ( ( ) => {
312
294
fixture = TestBed . createComponent ( MultiSelectTableWithSelectionColumn ) ;
313
295
component = fixture . componentInstance ;
@@ -397,12 +379,6 @@ describe('cdkSelectionColumn with multiple = false', () => {
397
379
let fixture : ComponentFixture < SingleSelectTableWithSelectionColumn > ;
398
380
let component : SingleSelectTableWithSelectionColumn ;
399
381
400
- beforeEach ( waitForAsync ( ( ) => {
401
- TestBed . configureTestingModule ( {
402
- imports : [ CdkSelectionModule , CdkTableModule , SingleSelectTableWithSelectionColumn ] ,
403
- } ) ;
404
- } ) ) ;
405
-
406
382
beforeEach ( ( ) => {
407
383
fixture = TestBed . createComponent ( SingleSelectTableWithSelectionColumn ) ;
408
384
component = fixture . componentInstance ;
0 commit comments