|
1 | 1 | // tslint:disable: max-line-length |
2 | 2 | import { Component, DebugElement, ElementRef, TemplateRef, ViewChild } from '@angular/core'; |
3 | | -import { async, ComponentFixture, fakeAsync, TestBed, tick } from '@angular/core/testing'; |
| 3 | +import { ComponentFixture, fakeAsync, TestBed, tick, waitForAsync } from '@angular/core/testing'; |
4 | 4 | import { FormsModule } from '@angular/forms'; |
5 | 5 | import { By } from '@angular/platform-browser'; |
6 | 6 | import { NoopAnimationsModule } from '@angular/platform-browser/animations'; |
@@ -126,7 +126,7 @@ describe('dateRangePicker', () => { |
126 | 126 | let component: TestDateRangePickerComponent; |
127 | 127 | let domHelper: DomHelper<TestDateRangePickerComponent>; |
128 | 128 |
|
129 | | - beforeEach(async(() => { |
| 129 | + beforeEach(waitForAsync(() => { |
130 | 130 | TestBed.configureTestingModule({ |
131 | 131 | imports: [DatepickerModule, NoopAnimationsModule, FormsModule], |
132 | 132 | declarations: [TestDateRangePickerComponent] |
@@ -277,7 +277,7 @@ describe('dateRangePickerOrigin', () => { |
277 | 277 | let debugEl: DebugElement; |
278 | 278 | let component: TestDateRangePickerOriginComponent; |
279 | 279 |
|
280 | | - beforeEach(async(() => { |
| 280 | + beforeEach(waitForAsync(() => { |
281 | 281 | TestBed.configureTestingModule({ |
282 | 282 | imports: [DatepickerModule, NoopAnimationsModule, FormsModule], |
283 | 283 | declarations: [TestDateRangePickerOriginComponent] |
@@ -322,7 +322,7 @@ describe('dateRangePickerComponent', () => { |
322 | 322 | let debugEl: DebugElement; |
323 | 323 | let component: TestDateRangePickerCmpComponent; |
324 | 324 |
|
325 | | - beforeEach(async(() => { |
| 325 | + beforeEach(waitForAsync(() => { |
326 | 326 | TestBed.configureTestingModule({ |
327 | 327 | imports: [DatepickerModule, NoopAnimationsModule, FormsModule], |
328 | 328 | declarations: [TestDateRangePickerCmpComponent] |
|
0 commit comments