Skip to content

Commit fb91ea6

Browse files
committed
add tests
1 parent 7dd44cd commit fb91ea6

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

test.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,3 +101,18 @@ test('test blank commit-url', (t) => {
101101
`)
102102
t.end()
103103
})
104+
105+
test('test backtick strings in commit messages', (t) => {
106+
t.equal(
107+
exec('--start-ref=a1a35b347d --end-ref=7dd44cde43 --filter-release --commit-url=https://yeehaw.com/{ref}/{ref}/{ghUser}/{ghRepo}/'),
108+
`* [[\`7dd44cde43\`](https://yeehaw.com/7dd44cde43/7dd44cde43/nodejs/changelog-maker/)] - \\\`test\\\`: commit\\_msg starting with a \\\`backtick\\\` string (Antoine du Hamel)
109+
* [[\`6a98e28b2e\`](https://yeehaw.com/6a98e28b2e/6a98e28b2e/nodejs/changelog-maker/)] - **test**: \`commit_msg\` with a backtick string (Antoine du Hamel)
110+
* [[\`19a0817ce5\`](https://yeehaw.com/19a0817ce5/19a0817ce5/nodejs/changelog-maker/)] - **test**: commit\\_msg with a \\\\\\\` backtick char (Antoine du Hamel)
111+
* [[\`f5d9239ced\`](https://yeehaw.com/f5d9239ced/f5d9239ced/nodejs/changelog-maker/)] - **test**: commit\\_msg with \\\`backtick\\\\\\\` string (Antoine du Hamel)
112+
* [[\`aa0e1f07ea\`](https://yeehaw.com/aa0e1f07ea/aa0e1f07ea/nodejs/changelog-maker/)] - **test**: commit\\_msg with \\\`\\\`backtick \\\` string\\\`\\\` (Antoine du Hamel)
113+
* [[\`263cbd4cfa\`](https://yeehaw.com/263cbd4cfa/263cbd4cfa/nodejs/changelog-maker/)] - **test**: commit\\_msg with \`back_tick\` string (Antoine du Hamel)
114+
* [[\`3668c3b88c\`](https://yeehaw.com/3668c3b88c/3668c3b88c/nodejs/changelog-maker/)] - **test**: commit\\_msg with \`backtick\` string (Antoine du Hamel)
115+
* [[\`a1a35b347d\`](https://yeehaw.com/a1a35b347d/a1a35b347d/nodejs/changelog-maker/)] - **feat**: improve support of backtick strings (Antoine du Hamel)`
116+
)
117+
t.end()
118+
})

0 commit comments

Comments
 (0)