From 2a5bc55cbfe6961458468a2394d146844c465a34 Mon Sep 17 00:00:00 2001 From: Josh Dales <30500472+joshdales@users.noreply.github.com> Date: Fri, 3 Mar 2023 09:28:40 -0500 Subject: [PATCH] Fix bad test descriptions Co-authored-by: MaksimZhukov <46996400+MaksimZhukov@users.noreply.github.com> --- __tests__/branch.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/__tests__/branch.test.ts b/__tests__/branch.test.ts index 5bd36aa3..5252b508 100644 --- a/__tests__/branch.test.ts +++ b/__tests__/branch.test.ts @@ -123,7 +123,7 @@ describe('toBranchMatchConfig', () => { describe('when the config contains a base-branch option', () => { const config = {'base-branch': ['testing']}; - it('sets headBranch in the matchConfig', () => { + it('sets baseBranch in the matchConfig', () => { const result = toBranchMatchConfig(config); expect(result).toMatchObject({ baseBranch: ['testing'] @@ -133,7 +133,7 @@ describe('toBranchMatchConfig', () => { describe('and the matching option is a string', () => { const stringConfig = {'base-branch': 'testing'}; - it('sets headBranch in the matchConfig', () => { + it('sets baseBranch in the matchConfig', () => { const result = toBranchMatchConfig(stringConfig); expect(result).toMatchObject({ baseBranch: ['testing'] @@ -144,7 +144,7 @@ describe('toBranchMatchConfig', () => { describe('when the config contains both a base-branch and head-branch option', () => { const config = {'base-branch': ['testing'], 'head-branch': ['testing']}; - it('sets headBranch in the matchConfig', () => { + it('sets headBranch and baseBranch in the matchConfig', () => { const result = toBranchMatchConfig(config); expect(result).toMatchObject({ baseBranch: ['testing'],