Skip to content

Commit d50aace

Browse files
committed
Fix error message
1 parent cd01789 commit d50aace

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/rules/requireAsteriskPrefix.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export default iterateJsdoc(({
2727
tokens.postDelimiter = '';
2828
};
2929

30-
utils.reportJSDoc('Expected JSDoc block to have no prefix.', {
30+
utils.reportJSDoc('Expected JSDoc line to have no prefix.', {
3131
column: 0,
3232
line: number,
3333
}, fix);
@@ -53,7 +53,7 @@ export default iterateJsdoc(({
5353
tokens.postDelimiter = ' ';
5454
};
5555

56-
utils.reportJSDoc('Expected JSDoc block to have the prefix.', {
56+
utils.reportJSDoc('Expected JSDoc line to have the prefix.', {
5757
column: 0,
5858
line: number,
5959
}, fix);

test/rules/assertions/requireAsteriskPrefix.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export default {
1313
errors: [
1414
{
1515
line: 4,
16-
message: 'Expected JSDoc block to have the prefix.',
16+
message: 'Expected JSDoc line to have the prefix.',
1717
},
1818
],
1919
output: `
@@ -37,7 +37,7 @@ export default {
3737
errors: [
3838
{
3939
line: 3,
40-
message: 'Expected JSDoc block to have the prefix.',
40+
message: 'Expected JSDoc line to have the prefix.',
4141
},
4242
],
4343
output: `
@@ -61,7 +61,7 @@ export default {
6161
errors: [
6262
{
6363
line: 4,
64-
message: 'Expected JSDoc block to have no prefix.',
64+
message: 'Expected JSDoc line to have no prefix.',
6565
},
6666
],
6767
options: ['never'],
@@ -86,7 +86,7 @@ export default {
8686
errors: [
8787
{
8888
line: 3,
89-
message: 'Expected JSDoc block to have no prefix.',
89+
message: 'Expected JSDoc line to have no prefix.',
9090
},
9191
],
9292
options: ['never'],

0 commit comments

Comments
 (0)