Skip to content

Commit

Permalink
commitlint/plugins.test: add failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
tehraninasab committed Feb 20, 2023
1 parent b415680 commit 5187a83
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions commitlint/plugins.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -710,6 +710,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(
Expand Down

0 comments on commit 5187a83

Please sign in to comment.