fix(compiler-cli): fix typo in diagnostic template info. (#32684)
Fixes #32662 PR Close #32684
This commit is contained in:
parent
3a90a7cb43
commit
f6d66671b6
|
@ -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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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\'');
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue