Skip to content

Commit

Permalink
Fix error message
Browse files Browse the repository at this point in the history
  • Loading branch information
brettz9 committed Jan 29, 2021
1 parent cd01789 commit d50aace
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/rules/requireAsteriskPrefix.js
Expand Up @@ -27,7 +27,7 @@ export default iterateJsdoc(({
tokens.postDelimiter = '';
};

utils.reportJSDoc('Expected JSDoc block to have no prefix.', {
utils.reportJSDoc('Expected JSDoc line to have no prefix.', {
column: 0,
line: number,
}, fix);
Expand All @@ -53,7 +53,7 @@ export default iterateJsdoc(({
tokens.postDelimiter = ' ';
};

utils.reportJSDoc('Expected JSDoc block to have the prefix.', {
utils.reportJSDoc('Expected JSDoc line to have the prefix.', {
column: 0,
line: number,
}, fix);
Expand Down
8 changes: 4 additions & 4 deletions test/rules/assertions/requireAsteriskPrefix.js
Expand Up @@ -13,7 +13,7 @@ export default {
errors: [
{
line: 4,
message: 'Expected JSDoc block to have the prefix.',
message: 'Expected JSDoc line to have the prefix.',
},
],
output: `
Expand All @@ -37,7 +37,7 @@ export default {
errors: [
{
line: 3,
message: 'Expected JSDoc block to have the prefix.',
message: 'Expected JSDoc line to have the prefix.',
},
],
output: `
Expand All @@ -61,7 +61,7 @@ export default {
errors: [
{
line: 4,
message: 'Expected JSDoc block to have no prefix.',
message: 'Expected JSDoc line to have no prefix.',
},
],
options: ['never'],
Expand All @@ -86,7 +86,7 @@ export default {
errors: [
{
line: 3,
message: 'Expected JSDoc block to have no prefix.',
message: 'Expected JSDoc line to have no prefix.',
},
],
options: ['never'],
Expand Down

0 comments on commit d50aace

Please sign in to comment.