Skip to content

Commit

Permalink
fix(compiler-cli): fix typo in diagnostic template info. (#32684)
Browse files Browse the repository at this point in the history
Fixes #32662

PR Close #32684
  • Loading branch information
cRAN-cg authored and kara committed Sep 16, 2019
1 parent 6600bea commit 947c076
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Expand Up @@ -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));
}
}
Expand Down
5 changes: 2 additions & 3 deletions packages/language-service/test/ts_plugin_spec.ts
Expand Up @@ -180,7 +180,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(
Expand All @@ -193,8 +193,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\'');
});
});
});
Expand Down

0 comments on commit 947c076

Please sign in to comment.