Skip to content

Commit b0d220f

Browse files
committed
Misc: add test for checkParamNames
Closes #154
1 parent 4548ecf commit b0d220f

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

test/lib/rules/validate-jsdoc/check-param-names.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,17 @@ describe('lib/rules/validate-jsdoc/check-param-names', function() {
6060
}
6161
},
6262
errors: 1
63+
}, {
64+
it: 'should report error in jsdoc with default param for function (readme, #154)',
65+
code: function () {
66+
/**
67+
* @param {String} msg
68+
* @param {Number} [line]
69+
*/
70+
function method(message) {
71+
}
72+
},
73+
errors: 1
6374
}, {
6475
it: 'should report error in jsdoc for method',
6576
code: function () {

0 commit comments

Comments
 (0)