Skip to content

Commit 9b72281

Browse files
committed
fix(igx-ts): add fixes
1 parent dcd7139 commit 9b72281

4 files changed

Lines changed: 16 additions & 16 deletions

File tree

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import { Routes } from '@angular/router';
22
import { HomeComponent } from './home/home.component';
3-
import { PageNotFoundComponent } from './error-routing/not-found/not-found.component';
4-
import { UncaughtErrorComponent } from './error-routing/error/uncaught-error.component';
3+
import { NotFound } from './error-routing/not-found/not-found';
4+
import { UncaughtError } from './error-routing/error/uncaught-error';
55

66
export const routes: Routes = [
77
{ path: '', redirectTo: '/home', pathMatch: 'full'},
88
{ path: 'home', component: HomeComponent, data: { text: 'Home' }},
9-
{ path: 'error', component: UncaughtErrorComponent },
10-
{ path: '**', component: PageNotFoundComponent } // must always be last
9+
{ path: 'error', component: UncaughtError },
10+
{ path: '**', component: NotFound } // must always be last
1111
];
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Component } from '@angular/core';
1+
import { Component, signal } from '@angular/core';
22
import { RouterOutlet } from '@angular/router';
33

44
@Component({
@@ -8,5 +8,5 @@ import { RouterOutlet } from '@angular/router';
88
styleUrl: './app.scss'
99
})
1010
export class App {
11-
title = 'Home - IgniteUI for Angular';
11+
protected readonly title = signal('Home - IgniteUI for Angular');
1212
}
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import { TestBed, waitForAsync } from '@angular/core/testing';
1+
import { TestBed } from '@angular/core/testing';
22
import { NoopAnimationsModule } from '@angular/platform-browser/animations';
33
import { RouterModule } from '@angular/router';
44
import { IgxLayoutModule, IgxNavbarModule, IgxNavigationDrawerModule, IgxRippleModule } from 'igniteui-angular';
55
import { App } from './app';
66
import { AuthenticationModule } from './authentication';
77

88
describe('App', () => {
9-
beforeEach(waitForAsync(() => {
9+
beforeEach(async () => {
1010
TestBed.configureTestingModule({
1111
imports: [
1212
NoopAnimationsModule,
@@ -19,11 +19,11 @@ describe('App', () => {
1919
App
2020
]
2121
}).compileComponents();
22-
}));
22+
});
2323

24-
it('should create the app', waitForAsync(() => {
24+
it('should create the app', () => {
2525
const fixture = TestBed.createComponent(App);
2626
const app = fixture.componentInstance;
2727
expect(app).toBeTruthy();
28-
}));
28+
});
2929
});
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import { TestBed, waitForAsync } from '@angular/core/testing';
1+
import { TestBed } from '@angular/core/testing';
22
import { RouterModule } from '@angular/router';
33
import { IgxLayoutModule, IgxNavbarModule, IgxNavigationDrawerModule, IgxRippleModule } from 'igniteui-angular';
44
import { App } from './app';
55

66
describe('App', () => {
7-
beforeEach(waitForAsync(() => {
7+
beforeEach(async () => {
88
TestBed.configureTestingModule({
99
imports: [
1010
RouterModule.forRoot([]),
@@ -15,11 +15,11 @@ describe('App', () => {
1515
App
1616
]
1717
}).compileComponents();
18-
}));
18+
});
1919

20-
it('should create the app', waitForAsync(() => {
20+
it('should create the app', () => {
2121
const fixture = TestBed.createComponent(App);
2222
const app = fixture.componentInstance;
2323
expect(app).toBeTruthy();
24-
}));
24+
});
2525
});

0 commit comments

Comments
 (0)