Skip to content

Commit

Permalink
commitlint: failing test for issue 148
Browse files Browse the repository at this point in the history
  • Loading branch information
Mersho committed Jan 16, 2024
1 parent c5d9ea0 commit d2aba31
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions commitlint/plugins.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -709,6 +709,24 @@ test("footer-refs-validity8", () => {
expect(footerRefsValidity8.status).toBe(0);
});

// This test reflects this issue: https://github.com/nblockchain/conventions/issues/148
test("footer-refs-validity9", () => {
let commitMsgWithCodeBlockAtRef =
"foo: blah blah" +
"\n\n" +
"Blah blah blah[1]." +
"\n\n" +
"[1] Stack trace:" +
"\n" +
"```\n" +
"someCodeBlock\n" +
"```"
let footerRefsValidity9 = runCommitLintOnMsg(
commitMsgWithCodeBlockAtRef
);
expect(footerRefsValidity9.status).toBe(0);
});

test("prefer-slash-over-backslash1", () => {
let commitMsgWithBackslash = "foo\\bar: bla bla bla";
let preferSlashOverBackslash1 = runCommitLintOnMsg(commitMsgWithBackslash);
Expand Down

0 comments on commit d2aba31

Please sign in to comment.