Website Structure
This commit is contained in:
parent
62812f2090
commit
71f0676a62
22365 changed files with 4265753 additions and 791 deletions
20
Frontend-Learner/node_modules/comment-parser/tests/e2e/issue-112.spec.js
generated
vendored
Normal file
20
Frontend-Learner/node_modules/comment-parser/tests/e2e/issue-112.spec.js
generated
vendored
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
const { parse, inspect } = require('../../lib/index.cjs');
|
||||
|
||||
const source = `
|
||||
/**
|
||||
* @param {Function} [processor=data => data] A function to run
|
||||
*/`;
|
||||
|
||||
test('default', () => {
|
||||
const parsed = parse(source);
|
||||
// console.log(inspect(parsed[0]));
|
||||
|
||||
expect(parsed[0].problems).toEqual([]);
|
||||
expect(parsed[0].tags[0]).toMatchObject({
|
||||
name: 'processor',
|
||||
default: 'data => data',
|
||||
optional: true,
|
||||
description: 'A function to run',
|
||||
problems: [],
|
||||
});
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue