feat(language-service): add Angular pseudo elements into completions (#31248)
PR Close #31248
This commit is contained in:

committed by
Matias Niemelä

parent
c44a1a78a9
commit
7c64b8d3fd
@ -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);
|
||||
|
Reference in New Issue
Block a user