build(docs-infra): simplify property syntax rendering (#25768)
PR Close #25768
This commit is contained in:

committed by
Alex Rickabaugh

parent
783a682a7d
commit
7373da9b11
@ -38,14 +38,9 @@ describe('Api pages', function() {
|
||||
expect(page.getOverview('type-alias').getText()).toContain('type HttpEvent<T>');
|
||||
});
|
||||
|
||||
it('should show readonly properties as getters', () => {
|
||||
const page = new ApiPage('api/common/http/HttpRequest');
|
||||
expect(page.getOverview('class').getText()).toContain('get body: T | null');
|
||||
});
|
||||
|
||||
it('should not show parenthesis for getters', () => {
|
||||
const page = new ApiPage('api/core/NgModuleRef');
|
||||
expect(page.getOverview('class').getText()).toContain('get injector: Injector');
|
||||
expect(page.getOverview('class').getText()).toContain('injector: Injector');
|
||||
});
|
||||
|
||||
it('should show both type and initializer if set', () => {
|
||||
|
Reference in New Issue
Block a user