Skip to content
Permalink
Browse files

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

Fixes #32662

PR Close #32684
  • Loading branch information...
cRAN-cg authored and kara committed Sep 15, 2019
1 parent 3a90a7c commit f6d66671b611e705891f101fa29ed1a080f10f16
@@ -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));
}
}
@@ -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\'');
});
});

0 comments on commit f6d6667

Please sign in to comment.
You can’t perform that action at this time.