Skip to content

Commit

Permalink
- add one more case to the nested testcase
Browse files Browse the repository at this point in the history
  • Loading branch information
mikepenz authored Mar 1, 2024
1 parent f0ad0cf commit b7c5179
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions __tests__/transformNested.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => {
Expand Down Expand Up @@ -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`)
})

0 comments on commit b7c5179

Please sign in to comment.