Skip to content

Commit 7ef827e

Browse files
JLHwungsindresorhus
authored andcommitted
Add missing period in some rule messages (#266)
1 parent 0c09169 commit 7ef827e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

rules/no-nested-tests.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const create = context => {
1616
if (nestedCount >= 2) {
1717
context.report({
1818
node,
19-
message: 'Tests should not be nested'
19+
message: 'Tests should not be nested.'
2020
});
2121
}
2222
}),

rules/test-title-format.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const create = context => {
2727
if (title.type === 'Literal' && !titleRegExp.test(title.value)) {
2828
context.report({
2929
node,
30-
message: `The test title doesn't match the required format: \`${titleRegExp}\``
30+
message: `The test title doesn't match the required format: \`${titleRegExp}\`.`
3131
});
3232
}
3333
}

test/no-nested-tests.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const ruleTester = avaRuleTester(test, {
1111
const header = 'const test = require(\'ava\');\n';
1212
const error = {
1313
ruleId: 'no-nested-tests',
14-
message: 'Tests should not be nested'
14+
message: 'Tests should not be nested.'
1515
};
1616

1717
ruleTester.run('no-nested-tests', rule, {

0 commit comments

Comments
 (0)