From 5cf667cb3d9ca365486b94a2a1a7f778979a9b6e Mon Sep 17 00:00:00 2001 From: Alexej Yaroshevich Date: Mon, 10 Nov 2014 17:04:27 +0400 Subject: [PATCH] add tests for this case --- test/lib/rules/validate-jsdoc/check-param-names.js | 7 +++++++ test/lib/rules/validate-jsdoc/check-redundant-params.js | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/test/lib/rules/validate-jsdoc/check-param-names.js b/test/lib/rules/validate-jsdoc/check-param-names.js index 8bd3a61..13a6312 100644 --- a/test/lib/rules/validate-jsdoc/check-param-names.js +++ b/test/lib/rules/validate-jsdoc/check-param-names.js @@ -9,6 +9,13 @@ describe('rules/validate-jsdoc', function () { checker.cases([ /* jshint ignore:start */ { + it: 'should not throw', + code: function() { + function yay(yey) { + } + } + + }, { it: 'should report invalid jsdoc', code: function () { var x = 1; diff --git a/test/lib/rules/validate-jsdoc/check-redundant-params.js b/test/lib/rules/validate-jsdoc/check-redundant-params.js index b3eaf77..94cc46e 100644 --- a/test/lib/rules/validate-jsdoc/check-redundant-params.js +++ b/test/lib/rules/validate-jsdoc/check-redundant-params.js @@ -9,6 +9,13 @@ describe('rules/validate-jsdoc', function () { checker.cases([ /* jshint ignore:start */ { + it: 'should not throw', + code: function() { + function yay(yey) { + } + } + + }, { it: 'should report redundant jsdoc-param for function', errors: 1, code: function () {