From 35783169a4f65640bb5ca9ebcf28558cfe06d88b Mon Sep 17 00:00:00 2001 From: Abdallah AlHalees Date: Fri, 16 Aug 2024 16:28:29 +0200 Subject: [PATCH] chore: dummy commit 9 (#53) --- README.md | 2 +- src/schema/code.ts | 2 +- test/hooks/hooks.test.ts | 4 ++++ 3 files changed, 6 insertions(+), 2 deletions(-) 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'); + }); });