From b7c5179f2c6841e692e96f8c365c1483ae2e7629 Mon Sep 17 00:00:00 2001 From: Mike Penz Date: Fri, 1 Mar 2024 20:15:08 +0000 Subject: [PATCH] - add one more case to the nested testcase --- __tests__/transformNested.test.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/__tests__/transformNested.test.ts b/__tests__/transformNested.test.ts index 9f16a2db..c5985109 100644 --- a/__tests__/transformNested.test.ts +++ b/__tests__/transformNested.test.ts @@ -19,7 +19,8 @@ pullRequestsWithLabels.push( buildPullRequeset(4, 'Mobile Bug Ticket', ['mobile', 'bug']), buildPullRequeset(5, 'Mobile & Core Feature Ticket', ['core', 'mobile', 'feature']), buildPullRequeset(6, 'Mobile & Core Bug Ticket', ['core', 'mobile', 'bug']), - buildPullRequeset(7, 'Mobile & Core Bug Bug Ticket', ['core', 'mobile', 'bug', 'fancy-bug']) + buildPullRequeset(7, 'Mobile & Core Bug Bug Ticket', ['core', 'mobile', 'bug', 'fancy-bug']), + buildPullRequeset(8, 'Core Ticket', ['core']) ) it('Match multiple labels exhaustive for category', async () => { @@ -79,5 +80,6 @@ it('Match multiple labels exhaustive for category', async () => { } ] - expect(buildChangelogTest(customConfig, pullRequestsWithLabels, repositoryUtils)).toStrictEqual(``) + const built = buildChangelogTest(customConfig, pullRequestsWithLabels, repositoryUtils) + expect(built).toStrictEqual(`## Core\n\n- Core Ticket\n\n### ๐Ÿš€ Features\n\n- Core Feature Ticket\n- Mobile & Core Feature Ticket\n\n### ๐Ÿงช Bug\n\n- Core Bug Ticket\n- Mobile & Core Bug Ticket\n\n#### ๐Ÿงช Bug Bug\n\n- Mobile & Core Bug Bug Ticket\n\n## Mobile\n\n\n### ๐Ÿš€ Features\n\n- Mobile Feature Ticket\n\n### ๐Ÿงช Bug\n\n- Mobile Bug Ticket\n\n`) })