Skip to content

Commit

Permalink
test(platform/azure): replace squashMerge by mergeStrategy (#26436)
Browse files Browse the repository at this point in the history
  • Loading branch information
joegoldman2 committed Dec 27, 2023
1 parent 1786438 commit 4345212
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
Expand Up @@ -60,7 +60,7 @@ exports[`modules/platform/azure/index createPr() when usePlatformAutomerge is se
"completionOptions": {
"deleteSourceBranch": true,
"mergeCommitMessage": "The Title",
"squashMerge": true,
"mergeStrategy": 2,
},
"createdAt": undefined,
"createdBy": {
Expand Down
9 changes: 4 additions & 5 deletions lib/modules/platform/azure/index.spec.ts
Expand Up @@ -912,7 +912,7 @@ describe('modules/platform/azure/index', () => {
id: prResult.createdBy.id,
},
completionOptions: {
squashMerge: true,
mergeStrategy: GitPullRequestMergeStrategy.Squash,
deleteSourceBranch: true,
mergeCommitMessage: 'The Title',
},
Expand Down Expand Up @@ -962,7 +962,7 @@ describe('modules/platform/azure/index', () => {
id: prResult[0].createdBy.id,
},
completionOptions: {
squashMerge: true,
mergeStrategy: GitPullRequestMergeStrategy.Squash,
deleteSourceBranch: true,
mergeCommitMessage: 'The Title',
},
Expand All @@ -973,7 +973,7 @@ describe('modules/platform/azure/index', () => {
id: prResult[1].createdBy.id,
},
completionOptions: {
squashMerge: true,
mergeStrategy: GitPullRequestMergeStrategy.Squash,
deleteSourceBranch: true,
mergeCommitMessage: 'The Second Title',
},
Expand Down Expand Up @@ -1047,7 +1047,7 @@ describe('modules/platform/azure/index', () => {
id: prResult.createdBy.id,
},
completionOptions: {
squashMerge: true,
mergeStrategy: GitPullRequestMergeStrategy.Squash,
deleteSourceBranch: true,
mergeCommitMessage: 'The Title',
},
Expand Down Expand Up @@ -1101,7 +1101,6 @@ describe('modules/platform/azure/index', () => {
},
completionOptions: {
mergeStrategy: prMergeStrategy,
squashMerge: false,
deleteSourceBranch: true,
mergeCommitMessage: 'The Title',
},
Expand Down

0 comments on commit 4345212

Please sign in to comment.