Skip to content

Commit

Permalink
Add check for keywords parsing in data item from JSDoc comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexprey committed Aug 17, 2020
1 parent ec67d7e commit c5c966f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/svelte3/integration/data/data.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,13 @@ describe('SvelteDoc v3 - Props', () => {
expect(variableWithCommentItem.description).to.be.equal('The property comment.');
expect(variableWithCommentItem.type).to.eql({ kind: 'type', type: 'string', text: 'string' });
expect(variableWithCommentItem.defaultValue).to.equal(undefined);
expect(variableWithCommentItem.keywords).to.be.exist;
expect(variableWithCommentItem.keywords.length).to.equal(1);

const keyword = variableWithCommentItem.keywords[0];

expect(keyword.name).to.equal('type');
expect(keyword.description).to.equal('{string}');

done();
}).catch(e => {
Expand Down

0 comments on commit c5c966f

Please sign in to comment.