Skip to content

Commit ec025d5

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

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

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

+10
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,16 @@ 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\n' +
174+
'Developer jd --Jon Doe-- found this bug.'
175+
176+
const actual = await parse(message);
177+
178+
expect(actual.body).toBe('Developer jd --Jon Doe-- found this bug.');
179+
});
180+
171181
test('parses references leading subject', async () => {
172182
const message = '#1 some subject';
173183
const opts = await require('conventional-changelog-angular');

0 commit comments

Comments
 (0)