Skip to content

Commit

Permalink
test(require-param): Add missing line numbers in errors
Browse files Browse the repository at this point in the history
  • Loading branch information
seanpoulter committed Feb 21, 2024
1 parent e246fdd commit 69c3905
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions test/rules/assertions/requireParam.js
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,7 @@ export default {
`,
errors: [
{
line: 2,
message: 'Missing JSDoc @param "options.foo" declaration.',
},
],
Expand Down Expand Up @@ -1783,6 +1784,7 @@ export default {
`,
errors: [
{
line: 2,
message: 'Missing JSDoc @param "options.foo" declaration.',
},
],
Expand Down Expand Up @@ -1828,6 +1830,7 @@ export default {
`,
errors: [
{
line: 3,
message: 'Missing JSDoc @param "options.permissions" declaration.',
},
],
Expand Down Expand Up @@ -1943,6 +1946,7 @@ export default {
`,
errors: [
{
line: 2,
message: 'Missing JSDoc @param "cfg.extra" declaration.',
},
],
Expand Down Expand Up @@ -1976,6 +1980,7 @@ export default {
`,
errors: [
{
line: 2,
message: 'Missing JSDoc @param "cfg.opts.extra" declaration.',
},
],
Expand Down Expand Up @@ -2010,6 +2015,7 @@ export default {
`,
errors: [
{
line: 2,
message: 'Missing JSDoc @param "cfg."1"" declaration.',
},
],
Expand Down Expand Up @@ -2067,15 +2073,19 @@ export default {
`,
errors: [
{
line: 2,
message: 'Missing JSDoc @param "bbox.x" declaration.',
},
{
line: 2,
message: 'Missing JSDoc @param "bbox.y" declaration.',
},
{
line: 2,
message: 'Missing JSDoc @param "bbox.width" declaration.',
},
{
line: 2,
message: 'Missing JSDoc @param "bbox.height" declaration.',
},
],
Expand Down Expand Up @@ -2110,15 +2120,19 @@ export default {
`,
errors: [
{
line: 2,
message: 'Missing JSDoc @param "bbox.x" declaration.',
},
{
line: 2,
message: 'Missing JSDoc @param "bbox.y" declaration.',
},
{
line: 2,
message: 'Missing JSDoc @param "bbox.width" declaration.',
},
{
line: 2,
message: 'Missing JSDoc @param "bbox.height" declaration.',
},
],
Expand Down Expand Up @@ -2149,9 +2163,11 @@ export default {
`,
errors: [
{
line: 3,
message: 'Missing JSDoc @param "fetchOptions.url" declaration.',
},
{
line: 3,
message: 'Missing JSDoc @param "fetchOptions.options" declaration.',
},
],
Expand Down Expand Up @@ -2218,6 +2234,7 @@ export default {
`,
errors: [
{
line: 2,
message: 'Missing JSDoc @param "options.foo.bar" declaration.',
},
],
Expand All @@ -2242,6 +2259,7 @@ export default {
`,
errors: [
{
line: 2,
message: 'Missing JSDoc @param "options.foo.bar" declaration.',
},
],
Expand Down Expand Up @@ -2271,9 +2289,11 @@ export default {
`,
errors: [
{
line: 2,
message: 'Missing JSDoc @param "options.foo" declaration.',
},
{
line: 2,
message: 'Missing JSDoc @param "options.foo.bar" declaration.',
},
],
Expand All @@ -2299,6 +2319,7 @@ export default {
`,
errors: [
{
line: 2,
message: 'Missing JSDoc @param "options.foo.bar" declaration.',
},
],
Expand All @@ -2324,6 +2345,7 @@ export default {
`,
errors: [
{
line: 2,
message: 'Missing JSDoc @param "options.foo.bar.baz" declaration.',
},
],
Expand Down Expand Up @@ -2351,9 +2373,11 @@ export default {
`,
errors: [
{
line: 2,
message: 'Missing JSDoc @param "props.prop.a" declaration.',
},
{
line: 2,
message: 'Missing JSDoc @param "props.prop.b" declaration.',
},
],
Expand Down Expand Up @@ -2385,12 +2409,15 @@ export default {
`,
errors: [
{
line: 2,
message: 'Missing JSDoc @param "a" declaration.',
},
{
line: 2,
message: 'Missing JSDoc @param "b" declaration.',
},
{
line: 2,
message: 'Missing JSDoc @param "c" declaration.',
},
],
Expand All @@ -2414,6 +2441,7 @@ export default {
`,
errors: [
{
line: 2,
message: 'Missing JSDoc @param "baz" declaration.',
},
],
Expand Down Expand Up @@ -2455,6 +2483,7 @@ export default {
`,
errors: [
{
line: 2,
message: 'Missing JSDoc @param "verbose" declaration.',
},
],
Expand Down Expand Up @@ -2502,6 +2531,7 @@ export default {
`,
errors: [
{
line: 6,
message: 'Missing JSDoc @param "btnState" declaration.',
},
],
Expand Down

0 comments on commit 69c3905

Please sign in to comment.