Skip to content

Commit 2065466

Browse files
committed
test(parser): add failing test
1 parent f1d3cd7 commit 2065466

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

@commitlint/parse/src/index.test.ts

+11
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,17 @@ test('registers inline #', async () => {
168168
expect(actual.body).toBe('things #reference');
169169
});
170170

171+
test('keep -side notes- in the body section', async () => {
172+
const message =
173+
'type(some/scope): subject\n' +
174+
'-hash-\n' +
175+
'9b1aff905b638aa274a5fc8f88662df446d374bd';
176+
177+
const actual = await parse(message);
178+
179+
expect(actual.body).toBe('-hash-\n' + '9b1aff905b638aa274a5fc8f88662df446d374bd');
180+
});
181+
171182
test('parses references leading subject', async () => {
172183
const message = '#1 some subject';
173184
const opts = await require('conventional-changelog-angular');

0 commit comments

Comments
 (0)