From 09d1e26ac2d3eb7b8c90aa7ca3ceb3e774769c21 Mon Sep 17 00:00:00 2001 From: realmarv Date: Mon, 20 Feb 2023 16:11:19 +0330 Subject: [PATCH] commitlint/plugins.test: add another test --- commitlint/plugins.test.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/commitlint/plugins.test.ts b/commitlint/plugins.test.ts index 1d908e98..3b106f27 100644 --- a/commitlint/plugins.test.ts +++ b/commitlint/plugins.test.ts @@ -904,6 +904,16 @@ test("default-revert-message6", () => { expect(defaultRevertMessage6.status).toBe(0); }); +test("default-revert-message7", () => { + let commitMsgWithoutDefaultRevertMessage = + "This is a revert commit\n\nBla bla."; + + let defaultRevertMessage7 = runCommitLintOnMsg( + commitMsgWithoutDefaultRevertMessage + ); + expect(defaultRevertMessage7.status).toBe(0); +}); + test("subject-lowercase1", () => { let commitMsgWithUppercaseAfterColon = "foo: Bar baz"; let subjectLowerCase1 = runCommitLintOnMsg(