diff --git a/README.md b/README.md index 0fdda92..e82ee98 100644 --- a/README.md +++ b/README.md @@ -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) \ No newline at end of file +This project is licensed under the [Apache 2.0 License](/LICENSE). \ No newline at end of file diff --git a/src/schema/code.ts b/src/schema/code.ts index 4a25889..c76cedb 100644 --- a/src/schema/code.ts +++ b/src/schema/code.ts @@ -68,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 { diff --git a/test/hooks/hooks.test.ts b/test/hooks/hooks.test.ts index 082aac8..b0da773 100644 --- a/test/hooks/hooks.test.ts +++ b/test/hooks/hooks.test.ts @@ -22,4 +22,8 @@ describe('Build code from type', () => { expect(code).toMatchSnapshot(); }) ); + + test('unknown', () => { + expect(schema.code.buildType(undefined)).toBe('known'); + }); });