Skip to content

Commit 5cf667c

Browse files
author
Alexej Yaroshevich
committed
add tests for this case
1 parent 792be3d commit 5cf667c

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@ describe('rules/validate-jsdoc', function () {
99
checker.cases([
1010
/* jshint ignore:start */
1111
{
12+
it: 'should not throw',
13+
code: function() {
14+
function yay(yey) {
15+
}
16+
}
17+
18+
}, {
1219
it: 'should report invalid jsdoc',
1320
code: function () {
1421
var x = 1;

test/lib/rules/validate-jsdoc/check-redundant-params.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@ describe('rules/validate-jsdoc', function () {
99
checker.cases([
1010
/* jshint ignore:start */
1111
{
12+
it: 'should not throw',
13+
code: function() {
14+
function yay(yey) {
15+
}
16+
}
17+
18+
}, {
1219
it: 'should report redundant jsdoc-param for function',
1320
errors: 1,
1421
code: function () {

0 commit comments

Comments
 (0)