Skip to content

Commit

Permalink
change(test): separating the pr-custom-footer test from the header test
Browse files Browse the repository at this point in the history
  • Loading branch information
rozsazoltan committed Nov 6, 2023
1 parent 95b65ef commit efb5497
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion test/manifest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1649,7 +1649,6 @@ describe('Manifest', () => {
'.': {
releaseType: 'simple',
pullRequestHeader: 'No beep boop for you',
pullRequestFooter: 'No reminder for you',
},
},
{
Expand All @@ -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'
);
Expand Down

0 comments on commit efb5497

Please sign in to comment.