Skip to content

Commit

Permalink
fix(focus-trap): tests missing compilation (#1974)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewseguin authored Nov 24, 2016
1 parent 8780720 commit cf1b4b9
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions src/lib/core/a11y/focus-trap.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {inject, ComponentFixture, TestBed} from '@angular/core/testing';
import {inject, ComponentFixture, TestBed, async} from '@angular/core/testing';
import {By} from '@angular/platform-browser';
import {Component} from '@angular/core';
import {FocusTrap} from './focus-trap';
Expand All @@ -10,9 +10,13 @@ describe('FocusTrap', () => {
let fixture: ComponentFixture<FocusTrapTestApp>;
let focusTrapInstance: FocusTrap;

beforeEach(() => TestBed.configureTestingModule({
declarations: [FocusTrap, FocusTrapTestApp],
providers: [InteractivityChecker]
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [FocusTrap, FocusTrapTestApp],
providers: [InteractivityChecker]
});

TestBed.compileComponents();
}));

beforeEach(inject([InteractivityChecker], (c: InteractivityChecker) => {
Expand Down Expand Up @@ -43,9 +47,13 @@ describe('FocusTrap', () => {
let fixture: ComponentFixture<FocusTrapTargetTestApp>;
let focusTrapInstance: FocusTrap;

beforeEach(() => TestBed.configureTestingModule({
declarations: [FocusTrap, FocusTrapTargetTestApp],
providers: [InteractivityChecker]
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [FocusTrap, FocusTrapTargetTestApp],
providers: [InteractivityChecker]
});

TestBed.compileComponents();
}));

beforeEach(inject([InteractivityChecker], (c: InteractivityChecker) => {
Expand Down

0 comments on commit cf1b4b9

Please sign in to comment.