File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
tools/zod2md-jsdocs/src/lib Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -19,17 +19,18 @@ describe('generateJSDocComment', () => {
1919 ` ) ;
2020 } ) ;
2121
22- it ( 'should convert type name to lowercase in the link anchor' , ( ) => {
23- const result = generateJSDocComment ( 'Schema' , 'https://example.com' ) ;
24- expect ( result ) . toContain ( 'https://example.com#' ) ;
25- } ) ;
26-
2722 it ( 'should use type name in description' , ( ) => {
28- const result = generateJSDocComment ( 'Schema ' , 'https://example.com' ) ;
23+ const result = generateJSDocComment ( 'SchemaName123 ' , 'https://example.com' ) ;
2924 expect ( result ) . toContain ( 'Type Definition: `SchemaName123`' ) ;
3025 } ) ;
26+
3127 it ( 'should convert type name to lowercase in the link anchor' , ( ) => {
3228 const result = generateJSDocComment ( 'SchemaName123' , 'https://example.com' ) ;
3329 expect ( result ) . toContain ( '#schemaname123' ) ;
3430 } ) ;
31+
32+ it ( 'should baseUrl in the link' , ( ) => {
33+ const result = generateJSDocComment ( 'Schema' , 'https://example.com' ) ;
34+ expect ( result ) . toContain ( 'https://example.com#' ) ;
35+ } ) ;
3536} ) ;
You can’t perform that action at this time.
0 commit comments