Skip to content

Commit

Permalink
test(cc,yay): add test case for conventional commits
Browse files Browse the repository at this point in the history
  • Loading branch information
rvagg committed Nov 29, 2024
1 parent 3b07526 commit 75c70e8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,3 +151,12 @@ test('test group, CVE-ID', (t) => {
`)
t.end()
})

test('test conventionalcommit style', (t) => {
const out = exec('--md --start-ref=ce886b5130 --end-ref=e5e3e8ffe4')
t.equal(
out,
`* \\[[\`43d428b3d2\`](https://github.com/nodejs/changelog-maker/commit/43d428b3d2)] - **(CVE-2024-22020)** **feat**: add cveId support to commmit output (RafaelGSS) [nodejs/node#55819](https://github.com/nodejs/node/pull/55819)
`)
t.end()
})

0 comments on commit 75c70e8

Please sign in to comment.