Skip to content

Commit cf1b4b9

Browse files
authored
fix(focus-trap): tests missing compilation (#1974)
1 parent 8780720 commit cf1b4b9

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

src/lib/core/a11y/focus-trap.spec.ts

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {inject, ComponentFixture, TestBed} from '@angular/core/testing';
1+
import {inject, ComponentFixture, TestBed, async} from '@angular/core/testing';
22
import {By} from '@angular/platform-browser';
33
import {Component} from '@angular/core';
44
import {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

Comments
 (0)