1- import { inject , ComponentFixture , TestBed } from '@angular/core/testing' ;
1+ import { inject , ComponentFixture , TestBed , async } from '@angular/core/testing' ;
22import { By } from '@angular/platform-browser' ;
33import { Component } from '@angular/core' ;
44import { FocusTrap } from './focus-trap' ;
@@ -10,9 +10,13 @@ describe('FocusTrap', () => {
1010 let fixture : ComponentFixture < FocusTrapTestApp > ;
1111 let focusTrapInstance : FocusTrap ;
1212
13- beforeEach ( ( ) => TestBed . configureTestingModule ( {
14- declarations : [ FocusTrap , FocusTrapTestApp ] ,
15- providers : [ InteractivityChecker ]
13+ beforeEach ( async ( ( ) => {
14+ TestBed . configureTestingModule ( {
15+ declarations : [ FocusTrap , FocusTrapTestApp ] ,
16+ providers : [ InteractivityChecker ]
17+ } ) ;
18+
19+ TestBed . compileComponents ( ) ;
1620 } ) ) ;
1721
1822 beforeEach ( inject ( [ InteractivityChecker ] , ( c : InteractivityChecker ) => {
@@ -43,9 +47,13 @@ describe('FocusTrap', () => {
4347 let fixture : ComponentFixture < FocusTrapTargetTestApp > ;
4448 let focusTrapInstance : FocusTrap ;
4549
46- beforeEach ( ( ) => TestBed . configureTestingModule ( {
47- declarations : [ FocusTrap , FocusTrapTargetTestApp ] ,
48- providers : [ InteractivityChecker ]
50+ beforeEach ( async ( ( ) => {
51+ TestBed . configureTestingModule ( {
52+ declarations : [ FocusTrap , FocusTrapTargetTestApp ] ,
53+ providers : [ InteractivityChecker ]
54+ } ) ;
55+
56+ TestBed . compileComponents ( ) ;
4957 } ) ) ;
5058
5159 beforeEach ( inject ( [ InteractivityChecker ] , ( c : InteractivityChecker ) => {
0 commit comments