From 5437e2da2970377ed92fdfb0bb4c31372e8ec149 Mon Sep 17 00:00:00 2001 From: Michael Prentice Date: Sat, 5 Oct 2019 22:19:04 -0400 Subject: [PATCH] refactor(core): typo in undecorated-classes-with-di AOT failure message (#33018) PR Close #33018 --- .../schematics/migrations/undecorated-classes-with-di/index.ts | 2 +- .../test/undecorated_classes_with_di_migration_spec.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/schematics/migrations/undecorated-classes-with-di/index.ts b/packages/core/schematics/migrations/undecorated-classes-with-di/index.ts index 23964a7d6c956..7ffce12ee6039 100644 --- a/packages/core/schematics/migrations/undecorated-classes-with-di/index.ts +++ b/packages/core/schematics/migrations/undecorated-classes-with-di/index.ts @@ -177,7 +177,7 @@ function gracefullyCreateProgram( return {program, compiler}; } catch (e) { - logger.warn(`\n${MIGRATION_AOT_FAILURE}. The following project failed: ${tsconfigPath}\n`); + logger.warn(`\n${MIGRATION_AOT_FAILURE} The following project failed: ${tsconfigPath}\n`); logger.error(`${e.toString()}\n`); return null; } diff --git a/packages/core/schematics/test/undecorated_classes_with_di_migration_spec.ts b/packages/core/schematics/test/undecorated_classes_with_di_migration_spec.ts index e33e33749ba5a..15ea12c7f2b8e 100644 --- a/packages/core/schematics/test/undecorated_classes_with_di_migration_spec.ts +++ b/packages/core/schematics/test/undecorated_classes_with_di_migration_spec.ts @@ -1447,7 +1447,7 @@ describe('Undecorated classes with DI migration', () => { expect(warnOutput.length).toBe(1); expect(warnOutput[0]) .toMatch( - /ensure there are no AOT compilation errors and rerun the migration.*project failed: tsconfig\.json/); + /ensure there are no AOT compilation errors and rerun the migration. The following project failed: tsconfig\.json/); expect(errorOutput.length).toBe(1); expect(errorOutput[0]).toMatch(/Cannot determine the module for class TestComp/); expect(infoOutput.join(' '))