diff --git a/commitlint/plugins.test.ts b/commitlint/plugins.test.ts index b763e7cb..eccf12d1 100644 --- a/commitlint/plugins.test.ts +++ b/commitlint/plugins.test.ts @@ -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);