test(language-service): Remove test for external template (#32017)
The tsserver is not meant to handle HTML files, so there is no point sending an "open" request. The existing test is wrong because the quickinfo returns "const name: never", which should be "(property) WidgetComponent.name" PR Close #32017
This commit is contained in:
parent
9808d91c62
commit
9e6c677135
|
@ -1,22 +0,0 @@
|
||||||
{
|
|
||||||
"seq": 0,
|
|
||||||
"type": "response",
|
|
||||||
"command": "quickinfo",
|
|
||||||
"request_seq": 4,
|
|
||||||
"success": true,
|
|
||||||
"body": {
|
|
||||||
"kind": "const",
|
|
||||||
"kindModifiers": "declare",
|
|
||||||
"start": {
|
|
||||||
"line": 1,
|
|
||||||
"offset": 17
|
|
||||||
},
|
|
||||||
"end": {
|
|
||||||
"line": 1,
|
|
||||||
"offset": 21
|
|
||||||
},
|
|
||||||
"displayString": "const name: never",
|
|
||||||
"documentation": "",
|
|
||||||
"tags": []
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -117,17 +117,6 @@ describe('Angular Language Service', () => {
|
||||||
offset: 28,
|
offset: 28,
|
||||||
});
|
});
|
||||||
expect(resp2).toMatchGolden('quickinfo.json');
|
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 () => {
|
it('should perform definition', async () => {
|
||||||
|
|
Loading…
Reference in New Issue