{
const files = {
'app.ts': `
diff --git a/packages/language-service/ivy/test/legacy/template_target_spec.ts b/packages/language-service/ivy/test/legacy/template_target_spec.ts
index 73457a9d2e..01623e9d7c 100644
--- a/packages/language-service/ivy/test/legacy/template_target_spec.ts
+++ b/packages/language-service/ivy/test/legacy/template_target_spec.ts
@@ -35,12 +35,23 @@ function parse(template: string): ParseResult {
// `ComponentDecoratorHandler._parseTemplate`.
leadingTriviaChars: [],
preserveWhitespaces: true,
+ alwaysAttemptHtmlToR3AstConversion: true,
}),
position,
};
}
describe('getTargetAtPosition for template AST', () => {
+ it('should locate incomplete tag', () => {
+ const {errors, nodes, position} = parse(` {
const {errors, nodes, position} = parse(`
`);
expect(errors).toBe(null);