Skip to content

Commit

Permalink
commitlint/plugins: failing test for bullets
Browse files Browse the repository at this point in the history
  • Loading branch information
knocte committed Jan 19, 2024
1 parent c5d9ea0 commit c8cdf8c
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions commitlint/plugins.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -500,6 +500,32 @@ test("body-paragraph-line-min-length8", () => {
expect(bodyParagraphLineMinLength8.status).toBe(0);
});

test("body-paragraph-line-min-length9", () => {
let commitMsgThatHasAsteriskBullets = `Fixed bug (a title of less than 50 chars)
This is a bullet list of things:
* Foo.
* Bar`;

let bodyParagraphLineMinLength9 = runCommitLintOnMsg(
commitMsgThatHasAsteriskBullets
);

expect(bodyParagraphLineMinLength9.status).toBe(0);

let commitMsgThatHasDashBullets = `Fixed bug (a title of less than 50 chars)
This is a bullet list of things:
- Foo.
- Bar`;

let bodyParagraphLineMinLength9Prime = runCommitLintOnMsg(
commitMsgThatHasAsteriskBullets
);

expect(bodyParagraphLineMinLength9Prime.status).toBe(0);
});

test("commit-hash-alone1", () => {
let commitMsgWithCommitUrl = `foo: this is only a title
Expand Down

0 comments on commit c8cdf8c

Please sign in to comment.