@@ -390,7 +390,7 @@ describe('UpdateChanges', () => {
390390 } ) ;
391391 spyOn < any > ( fs , 'readFileSync' ) . and . callFake ( ( ) => JSON . stringify ( classJson ) ) ;
392392
393- const fileContent =
393+ let fileContent =
394394`import { Size, Type as someThg } from "igniteui-angular";
395395import { IgxService, IgxDiffService as eDiffService, Calendar as Calendar } from 'igniteui-angular';
396396import { Type } from "@angular/core";
@@ -411,7 +411,7 @@ export class Test {
411411 expect ( update . getClassChanges ( ) ) . toEqual ( classJson ) ;
412412
413413 update . applyChanges ( ) ;
414- expect ( appTree . readContent ( 'test.component.ts' ) ) . toEqual (
414+ let expectedFileContent =
415415`import { IgxSize, IgxType as someThg } from "igniteui-angular";
416416import { IgxService1, IgxNewDiffService as eDiffService, CalendarActual as Calendar } from 'igniteui-angular';
417417import { Type } from "@angular/core";
@@ -423,8 +423,15 @@ export class Test {
423423 cal: Calendar;
424424
425425 constructor (public router: Router, private _iconService: IgxService1) {}
426- }`
427- ) ;
426+ }` ;
427+ expect ( appTree . readContent ( 'test.component.ts' ) ) . toEqual ( expectedFileContent ) ;
428+
429+ // with ig feed package:
430+ fileContent = fileContent . replace ( / i g n i t e u i - a n g u l a r / g, '@infragistics/igniteui-angular' ) ;
431+ expectedFileContent = expectedFileContent . replace ( / i g n i t e u i - a n g u l a r / g, '@infragistics/igniteui-angular' ) ;
432+ appTree . overwrite ( 'test.component.ts' , fileContent ) ;
433+ update . applyChanges ( ) ;
434+ expect ( appTree . readContent ( 'test.component.ts' ) ) . toEqual ( expectedFileContent ) ;
428435 } ) ;
429436
430437 it ( 'should move property value between element tags' , done => {
0 commit comments