From efb549780c1314cb939a94b8c96ed2af6fca77a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=B3zsa=20Zolt=C3=A1n?= Date: Mon, 6 Nov 2023 14:37:50 +0100 Subject: [PATCH] change(test): separating the pr-custom-footer test from the header test --- test/manifest.ts | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/test/manifest.ts b/test/manifest.ts index ed39ea40b..f43115d0b 100644 --- a/test/manifest.ts +++ b/test/manifest.ts @@ -1649,7 +1649,6 @@ describe('Manifest', () => { '.': { releaseType: 'simple', pullRequestHeader: 'No beep boop for you', - pullRequestFooter: 'No reminder for you', }, }, { @@ -1662,6 +1661,25 @@ describe('Manifest', () => { expect(pullRequest.body.header.toString()).to.eql( 'No beep boop for you' ); + }); + + it('allows customizing pull request footer', async () => { + const manifest = new Manifest( + github, + 'main', + { + '.': { + releaseType: 'simple', + pullRequestFooter: 'No reminder for you', + }, + }, + { + '.': Version.parse('1.0.0'), + } + ); + const pullRequests = await manifest.buildPullRequests(); + expect(pullRequests).lengthOf(1); + const pullRequest = pullRequests[0]; expect(pullRequest.body.footer.toString()).to.eql( 'No reminder for you' );