Skip to content

Commit

Permalink
Add missing period in some rule messages (#266)
Browse files Browse the repository at this point in the history
  • Loading branch information
JLHwung authored and sindresorhus committed Jul 1, 2019
1 parent 0c09169 commit 7ef827e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rules/no-nested-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const create = context => {
if (nestedCount >= 2) {
context.report({
node,
message: 'Tests should not be nested'
message: 'Tests should not be nested.'
});
}
}),
Expand Down
2 changes: 1 addition & 1 deletion rules/test-title-format.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const create = context => {
if (title.type === 'Literal' && !titleRegExp.test(title.value)) {
context.report({
node,
message: `The test title doesn't match the required format: \`${titleRegExp}\``
message: `The test title doesn't match the required format: \`${titleRegExp}\`.`
});
}
}
Expand Down
2 changes: 1 addition & 1 deletion test/no-nested-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const ruleTester = avaRuleTester(test, {
const header = 'const test = require(\'ava\');\n';
const error = {
ruleId: 'no-nested-tests',
message: 'Tests should not be nested'
message: 'Tests should not be nested.'
};

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

0 comments on commit 7ef827e

Please sign in to comment.