test(language-service): Add external template (#30128)

This is in preparation for more rigorous testing of external templates, since it'll work differently under the new tsserver plugin model.

PR Close #30128
This commit is contained in:
Keen Yee Liau
2019-04-25 10:50:19 -07:00
committed by Andrew Kushnir
parent f4916730b5
commit 05eabb19d6
6 changed files with 44 additions and 2 deletions

View File

@ -118,6 +118,17 @@ describe('Angular Language Service', () => {
offset: 28,
});
expect(resp2).toMatchGolden('quickinfo.json');
client.sendRequest('open', {
file: `${PWD}/project/app/widget.component.html`,
});
const resp3 = await client.sendRequest('quickinfo', {
file: `${PWD}/project/app/widget.component.html`,
line: 1,
offset: 19,
});
expect(resp3).toMatchGolden('quickinfo_externalTemplate.json');
});
it('should perform definition', async () => {