build(docs-infra): include directives etc in class descendants lists (#25768)

PR Close #25768
This commit is contained in:
Pete Bacon Darwin
2018-09-20 12:58:10 +01:00
committed by Alex Rickabaugh
parent ce06a75ebf
commit 15dadb92ef
6 changed files with 40 additions and 12 deletions

View File

@ -8,7 +8,19 @@ describe('Api pages', function() {
it('should show direct and indirect subclasses of a class', () => {
const page = new ApiPage('api/forms/AbstractControlDirective');
expect(page.getDescendants('class')).toEqual(['ControlContainer', 'AbstractFormGroupDirective', 'NgControl']);
expect(page.getDescendants('class')).toEqual([
'ControlContainer',
'AbstractFormGroupDirective',
'NgModelGroup',
'FormGroupName',
'NgForm',
'FormGroupDirective',
'FormArrayName',
'NgControl',
'NgModel',
'FormControlDirective',
'FormControlName'
]);
});
it('should show child interfaces that extend an interface', () => {