Skip to content

Commit 77c81ae

Browse files
committed
TT-52 feat: update aync methods in user components
1 parent c3982ff commit 77c81ae

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/app/modules/users/components/users-list/users-list.component.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
1+
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
22
import { MockStore, provideMockStore } from '@ngrx/store/testing';
33

44
import { NgxPaginationModule } from 'ngx-pagination';
@@ -19,7 +19,7 @@ describe('UsersListComponent', () => {
1919
message: '',
2020
};
2121

22-
beforeEach(async(() => {
22+
beforeEach(waitForAsync(() => {
2323
TestBed.configureTestingModule({
2424
imports: [NgxPaginationModule, DataTablesModule],
2525
declarations: [UsersListComponent],

src/app/modules/users/pages/users.component.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
1+
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
22

33
import { UsersComponent } from './users.component';
44

55
describe('UsersComponent', () => {
66
let component: UsersComponent;
77
let fixture: ComponentFixture<UsersComponent>;
88

9-
beforeEach(async(() => {
9+
beforeEach(waitForAsync(() => {
1010
TestBed.configureTestingModule({
1111
declarations: [ UsersComponent ]
1212
})

0 commit comments

Comments
 (0)