diff --git a/packages/igx-templates/Update.spec.ts b/packages/igx-templates/Update.spec.ts index ae9611ae4..5c76a08f9 100644 --- a/packages/igx-templates/Update.spec.ts +++ b/packages/igx-templates/Update.spec.ts @@ -19,7 +19,9 @@ describe("updateWorkspace - Unit tests", () => { }); it("Should fail if current used package is registry package", async () => { spyOn(pkgResolve, "getUpgradeablePackages").and.returnValue([]); + spyOn(Util, "log"); expect(await updateWorkspace("")).toEqual(false); + expect(Util.log).toHaveBeenCalledWith("Your app is already using packages from the Infragistics registry. You are good to go.", "green"); }); it("Should fail if no packages.json is found", async () => { diff --git a/packages/igx-templates/Update.ts b/packages/igx-templates/Update.ts index 8a8c4e6ec..fd16255bc 100644 --- a/packages/igx-templates/Update.ts +++ b/packages/igx-templates/Update.ts @@ -20,7 +20,7 @@ export async function updateWorkspace(rootPath: string): Promise { const fs: IFileSystem = App.container.get(FS_TOKEN); const upgradeable = getUpgradeablePackages(); if (!upgradeable.length) { - // log "no change needed" + Util.log("Your app is already using packages from the Infragistics registry. You are good to go.", "green"); return false; }