1
- import { inject , ComponentFixture , TestBed } from '@angular/core/testing' ;
1
+ import { inject , ComponentFixture , TestBed , async } from '@angular/core/testing' ;
2
2
import { By } from '@angular/platform-browser' ;
3
3
import { Component } from '@angular/core' ;
4
4
import { FocusTrap } from './focus-trap' ;
@@ -10,9 +10,13 @@ describe('FocusTrap', () => {
10
10
let fixture : ComponentFixture < FocusTrapTestApp > ;
11
11
let focusTrapInstance : FocusTrap ;
12
12
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 ( ) ;
16
20
} ) ) ;
17
21
18
22
beforeEach ( inject ( [ InteractivityChecker ] , ( c : InteractivityChecker ) => {
@@ -43,9 +47,13 @@ describe('FocusTrap', () => {
43
47
let fixture : ComponentFixture < FocusTrapTargetTestApp > ;
44
48
let focusTrapInstance : FocusTrap ;
45
49
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 ( ) ;
49
57
} ) ) ;
50
58
51
59
beforeEach ( inject ( [ InteractivityChecker ] , ( c : InteractivityChecker ) => {
0 commit comments