File tree 10 files changed +22
-22
lines changed
projects/coreui/angular/src/lib
10 files changed +22
-22
lines changed Original file line number Diff line number Diff line change 1
- import { async , ComponentFixture , TestBed } from '@angular/core/testing' ;
1
+ import { waitForAsync , ComponentFixture , TestBed } from '@angular/core/testing' ;
2
2
3
3
import { AppAsideComponent } from './app-aside.component' ;
4
4
5
5
describe ( 'AppAsideComponent' , ( ) => {
6
6
let component : AppAsideComponent ;
7
7
let fixture : ComponentFixture < AppAsideComponent > ;
8
8
9
- beforeEach ( async ( ( ) => {
9
+ beforeEach ( waitForAsync ( ( ) => {
10
10
TestBed . configureTestingModule ( {
11
11
declarations : [ AppAsideComponent ]
12
12
} )
Original file line number Diff line number Diff line change 1
- import { async , ComponentFixture , TestBed } from '@angular/core/testing' ;
1
+ import { waitForAsync , ComponentFixture , TestBed } from '@angular/core/testing' ;
2
2
import { RouterTestingModule } from '@angular/router/testing' ;
3
3
4
4
import { CuiBreadcrumbComponent } from './cui-breadcrumb.component' ;
@@ -7,7 +7,7 @@ describe('CuiBreadcrumbComponent', () => {
7
7
let component : CuiBreadcrumbComponent ;
8
8
let fixture : ComponentFixture < CuiBreadcrumbComponent > ;
9
9
10
- beforeEach ( async ( ( ) => {
10
+ beforeEach ( waitForAsync ( ( ) => {
11
11
TestBed . configureTestingModule ( {
12
12
imports : [ RouterTestingModule . withRoutes ( [ ] ) ] ,
13
13
declarations : [ CuiBreadcrumbComponent ]
Original file line number Diff line number Diff line change 1
- import { async , ComponentFixture , TestBed } from '@angular/core/testing' ;
1
+ import { waitForAsync , ComponentFixture , TestBed } from '@angular/core/testing' ;
2
2
3
3
import { AppFooterComponent } from './app-footer.component' ;
4
4
5
5
describe ( 'AppAsideComponent' , ( ) => {
6
6
let component : AppFooterComponent ;
7
7
let fixture : ComponentFixture < AppFooterComponent > ;
8
8
9
- beforeEach ( async ( ( ) => {
9
+ beforeEach ( waitForAsync ( ( ) => {
10
10
TestBed . configureTestingModule ( {
11
11
declarations : [ AppFooterComponent ]
12
12
} )
Original file line number Diff line number Diff line change 1
- import { async , ComponentFixture , TestBed } from '@angular/core/testing' ;
1
+ import { waitForAsync , ComponentFixture , TestBed } from '@angular/core/testing' ;
2
2
import { RouterTestingModule } from '@angular/router/testing' ;
3
3
4
4
import { AppHeaderComponent } from './app-header.component' ;
@@ -8,7 +8,7 @@ describe('AppAsideComponent', () => {
8
8
let component : AppHeaderComponent ;
9
9
let fixture : ComponentFixture < AppHeaderComponent > ;
10
10
11
- beforeEach ( async ( ( ) => {
11
+ beforeEach ( waitForAsync ( ( ) => {
12
12
TestBed . configureTestingModule ( {
13
13
imports : [ RouterTestingModule . withRoutes ( [ ] ) ] ,
14
14
declarations : [ AppHeaderComponent , SidebarToggleDirective , AsideToggleDirective ]
Original file line number Diff line number Diff line change 1
1
import { NO_ERRORS_SCHEMA } from '@angular/core' ;
2
- import { async , ComponentFixture , TestBed } from '@angular/core/testing' ;
2
+ import { waitForAsync , ComponentFixture , TestBed } from '@angular/core/testing' ;
3
3
import { RouterTestingModule } from '@angular/router/testing' ;
4
4
5
5
import { AppSidebarNavComponent } from './app-sidebar-nav.component' ;
@@ -8,7 +8,7 @@ describe('AppSidebarNavComponent', () => {
8
8
let component : AppSidebarNavComponent ;
9
9
let fixture : ComponentFixture < AppSidebarNavComponent > ;
10
10
11
- beforeEach ( async ( ( ) => {
11
+ beforeEach ( waitForAsync ( ( ) => {
12
12
TestBed . configureTestingModule ( {
13
13
declarations : [ AppSidebarNavComponent ] ,
14
14
imports : [ RouterTestingModule ] ,
Original file line number Diff line number Diff line change 1
1
import { NO_ERRORS_SCHEMA } from '@angular/core' ;
2
- import { async , ComponentFixture , TestBed } from '@angular/core/testing' ;
2
+ import { waitForAsync , ComponentFixture , TestBed } from '@angular/core/testing' ;
3
3
import { SidebarNavHelper } from '../app-sidebar-nav.service' ;
4
4
import { AppSidebarNavBadgePipe } from './app-sidebar-nav-badge.pipe' ;
5
5
import { AppSidebarNavLabelComponent } from './app-sidebar-nav-label.component' ;
@@ -8,7 +8,7 @@ describe('AppSidebarNavLabelComponent', () => {
8
8
let component : AppSidebarNavLabelComponent ;
9
9
let fixture : ComponentFixture < AppSidebarNavLabelComponent > ;
10
10
11
- beforeEach ( async ( ( ) => {
11
+ beforeEach ( waitForAsync ( ( ) => {
12
12
TestBed . configureTestingModule ( {
13
13
declarations : [ AppSidebarNavLabelComponent , AppSidebarNavBadgePipe ] ,
14
14
providers : [ SidebarNavHelper ] ,
Original file line number Diff line number Diff line change 1
1
import { NO_ERRORS_SCHEMA } from '@angular/core' ;
2
- import { async , ComponentFixture , TestBed } from '@angular/core/testing' ;
2
+ import { waitForAsync , ComponentFixture , TestBed } from '@angular/core/testing' ;
3
3
import { RouterTestingModule } from '@angular/router/testing' ;
4
4
5
5
import { AppSidebarNavBadgePipe } from './app-sidebar-nav-badge.pipe' ;
@@ -10,7 +10,7 @@ describe('AppSidebarNavLinkComponent', () => {
10
10
let component : AppSidebarNavLinkComponent ;
11
11
let fixture : ComponentFixture < AppSidebarNavLinkComponent > ;
12
12
13
- beforeEach ( async ( ( ) => {
13
+ beforeEach ( waitForAsync ( ( ) => {
14
14
TestBed . configureTestingModule ( {
15
15
declarations : [
16
16
AppSidebarNavLinkComponent ,
Original file line number Diff line number Diff line change 1
- import { async , ComponentFixture , TestBed } from '@angular/core/testing' ;
1
+ import { waitForAsync , ComponentFixture , TestBed } from '@angular/core/testing' ;
2
2
3
3
import { AppSidebarNavTitleComponent } from './app-sidebar-nav-title.component' ;
4
4
5
5
describe ( 'AppSidebarNavTitleComponent' , ( ) => {
6
6
let component : AppSidebarNavTitleComponent ;
7
7
let fixture : ComponentFixture < AppSidebarNavTitleComponent > ;
8
8
9
- beforeEach ( async ( ( ) => {
9
+ beforeEach ( waitForAsync ( ( ) => {
10
10
TestBed . configureTestingModule ( {
11
11
declarations : [ AppSidebarNavTitleComponent ] ,
12
12
} )
Original file line number Diff line number Diff line change 1
- import { async , ComponentFixture , TestBed } from '@angular/core/testing' ;
1
+ import { waitForAsync , ComponentFixture , TestBed } from '@angular/core/testing' ;
2
2
import { RouterTestingModule } from '@angular/router/testing' ;
3
3
4
4
import { AppSidebarComponent } from './app-sidebar.component' ;
@@ -7,7 +7,7 @@ describe('AppSidebarComponent', () => {
7
7
let component : AppSidebarComponent ;
8
8
let fixture : ComponentFixture < AppSidebarComponent > ;
9
9
10
- beforeEach ( async ( ( ) => {
10
+ beforeEach ( waitForAsync ( ( ) => {
11
11
TestBed . configureTestingModule ( {
12
12
imports : [ RouterTestingModule . withRoutes ( [ ] ) ] ,
13
13
declarations : [ AppSidebarComponent ] ,
@@ -40,7 +40,7 @@ describe('AppSidebarComponent', () => {
40
40
expect ( document . body . classList . contains ( 'brand-minimized' ) ) . toBeFalsy ( ) ;
41
41
} ) ;
42
42
43
- it ( 'emits only when value changes' , async ( ( ) => {
43
+ it ( 'emits only when value changes' , waitForAsync ( ( ) => {
44
44
spyOn ( component . minimizedChange , 'emit' ) ;
45
45
46
46
component . minimized = true ;
Original file line number Diff line number Diff line change 1
1
import { RouterTestingModule } from '@angular/router/testing' ;
2
- import { TestBed , async } from '@angular/core/testing' ;
2
+ import { TestBed , waitForAsync } from '@angular/core/testing' ;
3
3
import { AppComponent } from './app.component' ;
4
4
describe ( 'AppComponent' , ( ) => {
5
- beforeEach ( async ( ( ) => {
5
+ beforeEach ( waitForAsync ( ( ) => {
6
6
TestBed . configureTestingModule ( {
7
7
declarations : [
8
8
AppComponent
9
9
] ,
10
10
imports : [ RouterTestingModule ]
11
11
} ) . compileComponents ( ) ;
12
12
} ) ) ;
13
- it ( 'should create the app' , async ( ( ) => {
13
+ it ( 'should create the app' , waitForAsync ( ( ) => {
14
14
const fixture = TestBed . createComponent ( AppComponent ) ;
15
15
const app = fixture . debugElement . componentInstance ;
16
16
expect ( app ) . toBeTruthy ( ) ;
You can’t perform that action at this time.
0 commit comments