build(docs-infra): simplify property syntax rendering (#25768)

PR Close #25768
This commit is contained in:
Pete Bacon Darwin
2018-09-26 13:39:51 +01:00
committed by Alex Rickabaugh
parent 783a682a7d
commit 7373da9b11
3 changed files with 3 additions and 9 deletions

View File

@ -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', () => {