From 271aba2c4d6e7805ce317645f64ce9fdb7303cba Mon Sep 17 00:00:00 2001 From: Adam Setch <adam.setch@outlook.com> Date: Wed, 5 Jul 2023 04:12:11 -0400 Subject: [PATCH] test(markdown): add example for GH issue link (#23160) --- lib/util/__fixtures__/release-notes.txt | 1 + lib/util/markdown.spec.ts | 2 ++ 2 files changed, 3 insertions(+) diff --git a/lib/util/__fixtures__/release-notes.txt b/lib/util/__fixtures__/release-notes.txt index 3bccfd5282..12ecfe5f38 100644 --- a/lib/util/__fixtures__/release-notes.txt +++ b/lib/util/__fixtures__/release-notes.txt @@ -15,3 +15,4 @@ * @​user made their first contribution in https://github.com/foo/foo/pull/2 #### [Heading With Markdown Link](https://github.com/foo/foo/blob/HEAD/CHANGELOG.md#1234-2023-07-03) +* link to GH issue [#​1234](https://github.com/some/repo/issues/1234) diff --git a/lib/util/markdown.spec.ts b/lib/util/markdown.spec.ts index 11611a24f2..1176a5f06f 100644 --- a/lib/util/markdown.spec.ts +++ b/lib/util/markdown.spec.ts @@ -54,6 +54,8 @@ describe('util/markdown', () => { '#### New Contributors\n' + '* @user made their first contribution in https://github.com/foo/foo/pull/2\n' + '#### [Heading With Markdown Link](https://github.com/foo/foo/blob/HEAD/CHANGELOG.md#1234-2023-07-03)' + + '\n' + + '* link to GH issue [#1234](https://github.com/some/repo/issues/1234)' + '\n'; const expected = Fixtures.get('release-notes.txt'); -- GitLab