@@ -15,7 +15,7 @@ describe("Update 2.0.0", () => {
1515
1616 it ( "should update router event rxjs subscription" , async ( ) => {
1717 appTree . create (
18- "/src/app/app.ts" ,
18+ "/src/app/app.component. ts" ,
1919`import { Component, OnInit, ViewChild } from '@angular/core';
2020import { NavigationStart, Router } from '@angular/router';
2121import 'rxjs/add/operator/filter';
@@ -25,10 +25,10 @@ import { IgxNavigationDrawerComponent } from 'igniteui-angular';
2525
2626@Component({
2727 selector: 'app-root',
28- templateUrl: './app.html',
29- styleUrl: './app.css'
28+ templateUrl: './app.component. html',
29+ styleUrls: [ './app.component. css']
3030})
31- export class App implements OnInit {
31+ export class AppComponent implements OnInit {
3232 @ViewChild(IgxNavigationDrawerComponent, { static: true }) public navdrawer: IgxNavigationDrawerComponent;
3333
3434 constructor(private router: Router) {}
@@ -47,7 +47,7 @@ export class App implements OnInit {
4747 ) ;
4848
4949 const tree = await schematicRunner . runSchematic ( "migration-01" , { } , appTree ) ;
50- expect ( tree . readContent ( "/src/app/app.ts" ) )
50+ expect ( tree . readContent ( "/src/app/app.component. ts" ) )
5151 . toEqual (
5252`import { Component, OnInit, ViewChild } from '@angular/core';
5353import { NavigationStart, Router } from '@angular/router';
@@ -58,10 +58,10 @@ import { IgxNavigationDrawerComponent } from 'igniteui-angular';
5858
5959@Component({
6060 selector: 'app-root',
61- templateUrl: './app.html',
62- styleUrl: './app.css'
61+ templateUrl: './app.component. html',
62+ styleUrls: [ './app.component. css']
6363})
64- export class App implements OnInit {
64+ export class AppComponent implements OnInit {
6565 @ViewChild(IgxNavigationDrawerComponent, { static: true }) public navdrawer: IgxNavigationDrawerComponent;
6666
6767 constructor(private router: Router) {}
0 commit comments