feat(language-service): add Angular pseudo elements into completions (#31248)

PR Close #31248
This commit is contained in:
Suguru Inatomi
2019-09-19 07:13:30 +01:00
committed by Matias Niemelä
parent c44a1a78a9
commit 7c64b8d3fd
2 changed files with 22 additions and 1 deletions

View File

@ -51,6 +51,16 @@ describe('completions', () => {
]);
});
it('should be able to return angular pseudo elements', () => {
const marker = mockHost.getLocationMarkerFor(APP_COMPONENT, 'empty');
const completions = ngLS.getCompletionsAt(APP_COMPONENT, marker.start);
expectContain(completions, CompletionKind.ANGULAR_ELEMENT, [
'ng-container',
'ng-content',
'ng-template',
]);
});
it('should be able to return h1 attributes', () => {
const marker = mockHost.getLocationMarkerFor(APP_COMPONENT, 'h1-after-space');
const completions = ngLS.getCompletionsAt(APP_COMPONENT, marker.start);