Skip to content

Commit

Permalink
πŸ› fix: corrected grammar of complaint message
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaKGoldberg committed Jan 6, 2023
1 parent dc24285 commit 5bac55a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/commitlint-plugin/src/rule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const emoji: Rule = (parsed) => {
// if don't has gitmoji code or emoji unicode
pass = false;
errorMsg =
'Your commit should start with gitmoji code,please check the emoji code on https://gitmoji.dev/.';
'Your commit should start with gitmoji code. Please check the emoji code on https://gitmoji.dev/.';
}

return [pass, errorMsg];
Expand Down
4 changes: 2 additions & 2 deletions packages/commitlint-plugin/test/rule.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ test('should return error message if commit start without gitmoji code', () => {

expect(value).toEqual([
false,
'Your commit should start with gitmoji code,please check the emoji code on https://gitmoji.dev/.',
'Your commit should start with gitmoji code. Please check the emoji code on https://gitmoji.dev/.',
]);
});

Expand All @@ -25,7 +25,7 @@ describe('commit start with gitmoji code', () => {
const value = emojiRule({ raw: 'πŸ€” chore(scope): test' } as Commit, when);
expect(value).toEqual([
false,
'Your commit should start with gitmoji code,please check the emoji code on https://gitmoji.dev/.',
'Your commit should start with gitmoji code. Please check the emoji code on https://gitmoji.dev/.',
]);
});

Expand Down

0 comments on commit 5bac55a

Please sign in to comment.