From f6d66671b611e705891f101fa29ed1a080f10f16 Mon Sep 17 00:00:00 2001 From: cran-cg Date: Sun, 15 Sep 2019 12:59:58 +0530 Subject: [PATCH] fix(compiler-cli): fix typo in diagnostic template info. (#32684) Fixes #32662 PR Close #32684 --- .../compiler-cli/src/diagnostics/expression_diagnostics.ts | 2 +- packages/language-service/test/ts_plugin_spec.ts | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/compiler-cli/src/diagnostics/expression_diagnostics.ts b/packages/compiler-cli/src/diagnostics/expression_diagnostics.ts index 54b026c7ce..b00ef4659d 100644 --- a/packages/compiler-cli/src/diagnostics/expression_diagnostics.ts +++ b/packages/compiler-cli/src/diagnostics/expression_diagnostics.ts @@ -238,7 +238,7 @@ class ExpressionDiagnosticsVisitor extends RecursiveTemplateAstVisitor { 'The template context does not have an implicit value', spanOf(ast.sourceSpan)); } else { this.reportError( - `The template context does not defined a member called '${ast.value}'`, + `The template context does not define a member called '${ast.value}'`, spanOf(ast.sourceSpan)); } } diff --git a/packages/language-service/test/ts_plugin_spec.ts b/packages/language-service/test/ts_plugin_spec.ts index dcd50ca6c0..86c4fd5213 100644 --- a/packages/language-service/test/ts_plugin_spec.ts +++ b/packages/language-service/test/ts_plugin_spec.ts @@ -166,7 +166,7 @@ describe('plugin', () => { 'Identifier \'people_1\' is not defined. The component declaration, template variable declarations, and element references do not contain such a member'); }); it('should report an unknown context reference', () => { - expectError('even_1', 'The template context does not defined a member called \'even_1\''); + expectError('even_1', 'The template context does not define a member called \'even_1\''); }); it('should report an unknown value in a key expression', () => { expectError( @@ -179,8 +179,7 @@ describe('plugin', () => { expectSemanticError('app/ng-if-cases.ts', locationMarker, message); } it('should report an implicit context reference', () => { - expectError( - 'implicit', 'The template context does not defined a member called \'unknown\''); + expectError('implicit', 'The template context does not define a member called \'unknown\''); }); });