Skip to content

Commit 0230100

Browse files
author
Alexej Yaroshevich
committed
add tests with throwing cage for missing jsdoc scopes
1 parent c84f5f8 commit 0230100

File tree

7 files changed

+49
-0
lines changed

7 files changed

+49
-0
lines changed

test/lib/rules/validate-jsdoc/check-redundant-access.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 confusing multiaccess',
1320
errors: 1,
1421
code: function () {

test/lib/rules/validate-jsdoc/check-redundant-returns.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 @returns for function',
1320
errors: 3,
1421
code: function () {

test/lib/rules/validate-jsdoc/check-return-types.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 throw invalid type',
1320
errors: 1,
1421
code: function () {

test/lib/rules/validate-jsdoc/check-types.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 typedef',
1320
errors: 1,
1421
code: function() {

test/lib/rules/validate-jsdoc/leading-underscore-access.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@ describe('rules/validate-jsdoc', function () {
88
checker.cases([
99
/* jshint ignore:start */
1010
{
11+
it: 'should not throw',
12+
code: function() {
13+
function yay(yey) {
14+
}
15+
}
16+
17+
}, {
1118
it: 'should report enforcing @private on leading underscores',
1219
rules: {leadingUnderscoreAccess: 'private'},
1320
errors: 1,

test/lib/rules/validate-jsdoc/require-param-types.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 missing jsdoc-param type for function',
1320
errors: 1,
1421
code: function () {

test/lib/rules/validate-jsdoc/require-return-types.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 @returns',
1320
errors: 1,
1421
code: function() {

0 commit comments

Comments
 (0)