fix(compiler-cli): fix typo in diagnostic template info. (#32684)

Fixes #32662

PR Close #32684
This commit is contained in:
cran-cg 2019-09-15 12:59:58 +05:30 committed by Kara Erickson
parent 3a90a7cb43
commit f6d66671b6
2 changed files with 3 additions and 4 deletions

View File

@ -238,7 +238,7 @@ class ExpressionDiagnosticsVisitor extends RecursiveTemplateAstVisitor {
'The template context does not have an implicit value', spanOf(ast.sourceSpan)); 'The template context does not have an implicit value', spanOf(ast.sourceSpan));
} else { } else {
this.reportError( 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)); spanOf(ast.sourceSpan));
} }
} }

View File

@ -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'); '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', () => { 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', () => { it('should report an unknown value in a key expression', () => {
expectError( expectError(
@ -179,8 +179,7 @@ describe('plugin', () => {
expectSemanticError('app/ng-if-cases.ts', locationMarker, message); expectSemanticError('app/ng-if-cases.ts', locationMarker, message);
} }
it('should report an implicit context reference', () => { it('should report an implicit context reference', () => {
expectError( expectError('implicit', 'The template context does not define a member called \'unknown\'');
'implicit', 'The template context does not defined a member called \'unknown\'');
}); });
}); });