File tree Expand file tree Collapse file tree 10 files changed +22
-22
lines changed
projects/coreui/angular/src/lib Expand file tree Collapse file tree 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' ;
22
33import { AppAsideComponent } from './app-aside.component' ;
44
55describe ( 'AppAsideComponent' , ( ) => {
66 let component : AppAsideComponent ;
77 let fixture : ComponentFixture < AppAsideComponent > ;
88
9- beforeEach ( async ( ( ) => {
9+ beforeEach ( waitForAsync ( ( ) => {
1010 TestBed . configureTestingModule ( {
1111 declarations : [ AppAsideComponent ]
1212 } )
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' ;
22import { RouterTestingModule } from '@angular/router/testing' ;
33
44import { CuiBreadcrumbComponent } from './cui-breadcrumb.component' ;
@@ -7,7 +7,7 @@ describe('CuiBreadcrumbComponent', () => {
77 let component : CuiBreadcrumbComponent ;
88 let fixture : ComponentFixture < CuiBreadcrumbComponent > ;
99
10- beforeEach ( async ( ( ) => {
10+ beforeEach ( waitForAsync ( ( ) => {
1111 TestBed . configureTestingModule ( {
1212 imports : [ RouterTestingModule . withRoutes ( [ ] ) ] ,
1313 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' ;
22
33import { AppFooterComponent } from './app-footer.component' ;
44
55describe ( 'AppAsideComponent' , ( ) => {
66 let component : AppFooterComponent ;
77 let fixture : ComponentFixture < AppFooterComponent > ;
88
9- beforeEach ( async ( ( ) => {
9+ beforeEach ( waitForAsync ( ( ) => {
1010 TestBed . configureTestingModule ( {
1111 declarations : [ AppFooterComponent ]
1212 } )
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' ;
22import { RouterTestingModule } from '@angular/router/testing' ;
33
44import { AppHeaderComponent } from './app-header.component' ;
@@ -8,7 +8,7 @@ describe('AppAsideComponent', () => {
88 let component : AppHeaderComponent ;
99 let fixture : ComponentFixture < AppHeaderComponent > ;
1010
11- beforeEach ( async ( ( ) => {
11+ beforeEach ( waitForAsync ( ( ) => {
1212 TestBed . configureTestingModule ( {
1313 imports : [ RouterTestingModule . withRoutes ( [ ] ) ] ,
1414 declarations : [ AppHeaderComponent , SidebarToggleDirective , AsideToggleDirective ]
Original file line number Diff line number Diff line change 11import { NO_ERRORS_SCHEMA } from '@angular/core' ;
2- import { async , ComponentFixture , TestBed } from '@angular/core/testing' ;
2+ import { waitForAsync , ComponentFixture , TestBed } from '@angular/core/testing' ;
33import { RouterTestingModule } from '@angular/router/testing' ;
44
55import { AppSidebarNavComponent } from './app-sidebar-nav.component' ;
@@ -8,7 +8,7 @@ describe('AppSidebarNavComponent', () => {
88 let component : AppSidebarNavComponent ;
99 let fixture : ComponentFixture < AppSidebarNavComponent > ;
1010
11- beforeEach ( async ( ( ) => {
11+ beforeEach ( waitForAsync ( ( ) => {
1212 TestBed . configureTestingModule ( {
1313 declarations : [ AppSidebarNavComponent ] ,
1414 imports : [ RouterTestingModule ] ,
Original file line number Diff line number Diff line change 11import { NO_ERRORS_SCHEMA } from '@angular/core' ;
2- import { async , ComponentFixture , TestBed } from '@angular/core/testing' ;
2+ import { waitForAsync , ComponentFixture , TestBed } from '@angular/core/testing' ;
33import { SidebarNavHelper } from '../app-sidebar-nav.service' ;
44import { AppSidebarNavBadgePipe } from './app-sidebar-nav-badge.pipe' ;
55import { AppSidebarNavLabelComponent } from './app-sidebar-nav-label.component' ;
@@ -8,7 +8,7 @@ describe('AppSidebarNavLabelComponent', () => {
88 let component : AppSidebarNavLabelComponent ;
99 let fixture : ComponentFixture < AppSidebarNavLabelComponent > ;
1010
11- beforeEach ( async ( ( ) => {
11+ beforeEach ( waitForAsync ( ( ) => {
1212 TestBed . configureTestingModule ( {
1313 declarations : [ AppSidebarNavLabelComponent , AppSidebarNavBadgePipe ] ,
1414 providers : [ SidebarNavHelper ] ,
Original file line number Diff line number Diff line change 11import { NO_ERRORS_SCHEMA } from '@angular/core' ;
2- import { async , ComponentFixture , TestBed } from '@angular/core/testing' ;
2+ import { waitForAsync , ComponentFixture , TestBed } from '@angular/core/testing' ;
33import { RouterTestingModule } from '@angular/router/testing' ;
44
55import { AppSidebarNavBadgePipe } from './app-sidebar-nav-badge.pipe' ;
@@ -10,7 +10,7 @@ describe('AppSidebarNavLinkComponent', () => {
1010 let component : AppSidebarNavLinkComponent ;
1111 let fixture : ComponentFixture < AppSidebarNavLinkComponent > ;
1212
13- beforeEach ( async ( ( ) => {
13+ beforeEach ( waitForAsync ( ( ) => {
1414 TestBed . configureTestingModule ( {
1515 declarations : [
1616 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' ;
22
33import { AppSidebarNavTitleComponent } from './app-sidebar-nav-title.component' ;
44
55describe ( 'AppSidebarNavTitleComponent' , ( ) => {
66 let component : AppSidebarNavTitleComponent ;
77 let fixture : ComponentFixture < AppSidebarNavTitleComponent > ;
88
9- beforeEach ( async ( ( ) => {
9+ beforeEach ( waitForAsync ( ( ) => {
1010 TestBed . configureTestingModule ( {
1111 declarations : [ AppSidebarNavTitleComponent ] ,
1212 } )
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' ;
22import { RouterTestingModule } from '@angular/router/testing' ;
33
44import { AppSidebarComponent } from './app-sidebar.component' ;
@@ -7,7 +7,7 @@ describe('AppSidebarComponent', () => {
77 let component : AppSidebarComponent ;
88 let fixture : ComponentFixture < AppSidebarComponent > ;
99
10- beforeEach ( async ( ( ) => {
10+ beforeEach ( waitForAsync ( ( ) => {
1111 TestBed . configureTestingModule ( {
1212 imports : [ RouterTestingModule . withRoutes ( [ ] ) ] ,
1313 declarations : [ AppSidebarComponent ] ,
@@ -40,7 +40,7 @@ describe('AppSidebarComponent', () => {
4040 expect ( document . body . classList . contains ( 'brand-minimized' ) ) . toBeFalsy ( ) ;
4141 } ) ;
4242
43- it ( 'emits only when value changes' , async ( ( ) => {
43+ it ( 'emits only when value changes' , waitForAsync ( ( ) => {
4444 spyOn ( component . minimizedChange , 'emit' ) ;
4545
4646 component . minimized = true ;
Original file line number Diff line number Diff line change 11import { RouterTestingModule } from '@angular/router/testing' ;
2- import { TestBed , async } from '@angular/core/testing' ;
2+ import { TestBed , waitForAsync } from '@angular/core/testing' ;
33import { AppComponent } from './app.component' ;
44describe ( 'AppComponent' , ( ) => {
5- beforeEach ( async ( ( ) => {
5+ beforeEach ( waitForAsync ( ( ) => {
66 TestBed . configureTestingModule ( {
77 declarations : [
88 AppComponent
99 ] ,
1010 imports : [ RouterTestingModule ]
1111 } ) . compileComponents ( ) ;
1212 } ) ) ;
13- it ( 'should create the app' , async ( ( ) => {
13+ it ( 'should create the app' , waitForAsync ( ( ) => {
1414 const fixture = TestBed . createComponent ( AppComponent ) ;
1515 const app = fixture . debugElement . componentInstance ;
1616 expect ( app ) . toBeTruthy ( ) ;
You can’t perform that action at this time.
0 commit comments