Skip to content

Commit

Permalink
fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ndelangen committed Mar 28, 2023
1 parent ff23494 commit 37caaae
Show file tree
Hide file tree
Showing 5 changed files with 398 additions and 63 deletions.
4 changes: 2 additions & 2 deletions code/lib/docs-tools/src/argTypes/jsdocParser.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,8 @@ describe('parseJsDoc', () => {
const { extractedTags } = parseJsDoc('@deprecated string');

expect(extractedTags.deprecated).not.toBeNull();
expect(extractedTags.deprecated.name).not.toBeNull();
expect(extractedTags.deprecated.name).toBe('string');
expect(extractedTags.deprecated).not.toBeNull();
expect(extractedTags.deprecated).toBe('string');
});
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,14 @@ Object {
"name": "width",
"table": Object {
"defaultValue": null,
"jsDocTags": undefined,
"jsDocTags": Object {
"deprecated": "Do not use! Use \`size\` instead!

Width of foo",
"ignore": false,
"params": undefined,
"returns": null,
},
"type": Object {
"detail": undefined,
"summary": "number",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@ Object {
Object {
"defaultValue": null,
"description": "",
"jsDocTags": Object {
"deprecated": "Do not use! Use \`size\` instead!

Width of foo",
"ignore": false,
"params": undefined,
"returns": null,
},
"name": "width",
"required": true,
"sbType": Object {
Expand Down
Loading

0 comments on commit 37caaae

Please sign in to comment.