Skip to content

Commit 8d90f87

Browse files
author
Michael Hladky
committed
refactor: wip
1 parent 3598f8a commit 8d90f87

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

tools/zod2md-jsdocs/src/lib/transformers.unit.test.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff 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
});

0 commit comments

Comments
 (0)