From 5bac55acdda7a0a6936abbc903c1b200bf891c11 Mon Sep 17 00:00:00 2001 From: Josh Goldberg Date: Thu, 5 Jan 2023 20:52:16 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix:=20corrected=20grammar=20of?= =?UTF-8?q?=20complaint=20message?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/commitlint-plugin/src/rule.ts | 2 +- packages/commitlint-plugin/test/rule.test.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/commitlint-plugin/src/rule.ts b/packages/commitlint-plugin/src/rule.ts index 5a55b1fb..443930cb 100644 --- a/packages/commitlint-plugin/src/rule.ts +++ b/packages/commitlint-plugin/src/rule.ts @@ -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]; diff --git a/packages/commitlint-plugin/test/rule.test.ts b/packages/commitlint-plugin/test/rule.test.ts index ab67b0fc..6952338c 100644 --- a/packages/commitlint-plugin/test/rule.test.ts +++ b/packages/commitlint-plugin/test/rule.test.ts @@ -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/.', ]); }); @@ -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/.', ]); });