Fix bad test descriptions

Co-authored-by: MaksimZhukov <46996400+MaksimZhukov@users.noreply.github.com>
This commit is contained in:
Josh Dales
2023-03-03 09:28:40 -05:00
committed by GitHub
parent 2e10ffb6ec
commit 2a5bc55cbf

View File

@@ -123,7 +123,7 @@ describe('toBranchMatchConfig', () => {
describe('when the config contains a base-branch option', () => { describe('when the config contains a base-branch option', () => {
const config = {'base-branch': ['testing']}; const config = {'base-branch': ['testing']};
it('sets headBranch in the matchConfig', () => { it('sets baseBranch in the matchConfig', () => {
const result = toBranchMatchConfig(config); const result = toBranchMatchConfig(config);
expect(result).toMatchObject<BranchMatchConfig>({ expect(result).toMatchObject<BranchMatchConfig>({
baseBranch: ['testing'] baseBranch: ['testing']
@@ -133,7 +133,7 @@ describe('toBranchMatchConfig', () => {
describe('and the matching option is a string', () => { describe('and the matching option is a string', () => {
const stringConfig = {'base-branch': 'testing'}; const stringConfig = {'base-branch': 'testing'};
it('sets headBranch in the matchConfig', () => { it('sets baseBranch in the matchConfig', () => {
const result = toBranchMatchConfig(stringConfig); const result = toBranchMatchConfig(stringConfig);
expect(result).toMatchObject<BranchMatchConfig>({ expect(result).toMatchObject<BranchMatchConfig>({
baseBranch: ['testing'] baseBranch: ['testing']
@@ -144,7 +144,7 @@ describe('toBranchMatchConfig', () => {
describe('when the config contains both a base-branch and head-branch option', () => { describe('when the config contains both a base-branch and head-branch option', () => {
const config = {'base-branch': ['testing'], 'head-branch': ['testing']}; 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); const result = toBranchMatchConfig(config);
expect(result).toMatchObject<BranchMatchConfig>({ expect(result).toMatchObject<BranchMatchConfig>({
baseBranch: ['testing'], baseBranch: ['testing'],