From 709039ced4ceb81736a2d4cfeeee438c4a42e786 Mon Sep 17 00:00:00 2001 From: Mike Penz Date: Sun, 11 Jun 2023 20:28:04 +0000 Subject: [PATCH] - update tests for change ddefault --- __tests__/releaseNotesBuilderPull.test.ts | 4 ++++ __tests__/transform.test.ts | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/__tests__/releaseNotesBuilderPull.test.ts b/__tests__/releaseNotesBuilderPull.test.ts index 7c5d7c5..d310ee5 100644 --- a/__tests__/releaseNotesBuilderPull.test.ts +++ b/__tests__/releaseNotesBuilderPull.test.ts @@ -133,6 +133,7 @@ nhoelzl it('Should match ordered ASC', async () => { const configuration = mergeConfiguration(undefined, resolveConfiguration('', 'configs_test/configuration_asc.json')) + configuration.categories.pop() // drop `uncategorized` category const options = { owner: 'mikepenz', repo: 'release-changelog-builder-action', @@ -155,6 +156,7 @@ it('Should match ordered ASC', async () => { it('Should match ordered DESC', async () => { const configuration = mergeConfiguration(undefined, resolveConfiguration('', 'configs_test/configuration_desc.json')) + configuration.categories.pop() // drop `uncategorized` category const options = { owner: 'mikepenz', repo: 'release-changelog-builder-action', @@ -177,6 +179,7 @@ it('Should match ordered DESC', async () => { it('Should match ordered by title ASC', async () => { const configuration = mergeConfiguration(undefined, resolveConfiguration('', 'configs_test/configuration_sort_title_asc.json')) + configuration.categories.pop() // drop `uncategorized` category const options = { owner: 'mikepenz', repo: 'release-changelog-builder-action', @@ -200,6 +203,7 @@ it('Should match ordered by title ASC', async () => { it('Should match ordered by title DESC', async () => { const configuration = mergeConfiguration(undefined, resolveConfiguration('', 'configs_test/configuration_sort_title_desc.json')) + configuration.categories.pop() // drop `uncategorized` category const options = { owner: 'mikepenz', repo: 'release-changelog-builder-action', diff --git a/__tests__/transform.test.ts b/__tests__/transform.test.ts index 5d2bf6e..751813a 100644 --- a/__tests__/transform.test.ts +++ b/__tests__/transform.test.ts @@ -441,7 +441,6 @@ it('Use empty_content for empty category', async () => { it('Commit SHA-1 in commitMode', async () => { const customConfig = Object.assign({}, DefaultConfiguration) - customConfig.categories.pop() // drop `uncategorized` category customConfig.sort = 'DESC' customConfig.pr_template = '${{MERGE_SHA}}'