Skip to content
This repository was archived by the owner on Mar 31, 2025. It is now read-only.

Commit c11fdaa

Browse files
committed
Expand test
1 parent a6ea2c5 commit c11fdaa

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

typescript/mocks/readTypeScriptModules/heritageMembers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export class Parent {
2-
parentProperty: boolean = true;
2+
parentProperty: string = 'Works';
33
}
44

55
export class Child extends Parent {

typescript/processors/readTypeScriptModules.spec.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,12 @@ describe('readTypeScriptModules', function() {
4848

4949
expect(docs[3].members.length)
5050
.toBe(2, 'Expected the extended property to be added to the members.');
51+
52+
expect(docs[3].members[0].name).toBe('childProperty');
53+
expect(docs[3].members[1].name).toBe('parentProperty');
54+
55+
expect(docs[3].members[0].returnType).toBe('boolean');
56+
expect(docs[3].members[1].returnType).toBe('string');
5157
});
5258

5359
it('should create add additional declarations of a symbol onto the exportDoc', function() {

0 commit comments

Comments
 (0)