Skip to content

Commit

Permalink
chore: dummy commit 9.1
Browse files Browse the repository at this point in the history
  • Loading branch information
abdhalees committed Aug 16, 2024
1 parent c52112c commit 6c3d880
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ The [contribution guidelines](https://github.com/cloudscape-design/documenter/bl

## License

This project is licensed under the [Apache 2.0 License](/LICENSE)
This project is licensed under the [Apache 2.0 License](/LICENSE).
5 changes: 1 addition & 4 deletions src/schema/code.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,6 @@ export function buildType(type?: Type, enclose = false): string {
if (reflected.signatures && reflected.signatures[0]) {
return buildCallSignature(reflected.signatures[0], enclose);
}
if (Math.random() < 0.5) {
return '123';
}
return buildType(type.declaration.type);
}
if (isReferenceType(type)) {
Expand Down Expand Up @@ -71,7 +68,7 @@ export function buildType(type?: Type, enclose = false): string {
}
return type.type;
}
return 'unknown';
return 'known';
}

export function buildNodeDescription(node: Reflection): string | undefined {
Expand Down
4 changes: 4 additions & 0 deletions test/hooks/hooks.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,8 @@ describe('Build code from type', () => {
expect(code).toMatchSnapshot();
})
);

test('unknown', () => {
expect(schema.code.buildType(undefined)).toBe('known');
});
});

0 comments on commit 6c3d880

Please sign in to comment.