Skip to content

Commit

Permalink
add tests for this case
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexej Yaroshevich committed Nov 10, 2014
1 parent 792be3d commit 5cf667c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/lib/rules/validate-jsdoc/check-param-names.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
7 changes: 7 additions & 0 deletions test/lib/rules/validate-jsdoc/check-redundant-params.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down

0 comments on commit 5cf667c

Please sign in to comment.