Skip to content

Commit

Permalink
Improve test with more accurate commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
roryabraham committed Aug 8, 2024
1 parent 5049b2d commit 425c044
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/unit/markPullRequestsAsDeployedTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,14 @@ platform | result
});
mockGetCommit.mockImplementation(({commit_sha}: Commit) => {
if (commit_sha === 'xyz') {
return {data: {message: 'Merge pull request #3 blahblahblah (cherry picked from commit dagdag) (CP triggered by freyja)', committer: {name: 'freyja'}}};
return {
data: {
message: `Merge pull request #3 blahblahblah
(cherry picked from commit dagdag)
(CP triggered by freyja)`,
committer: {name: 'freyja'},
},
};
}
return mockGetCommitDefaultImplementation({commit_sha});
});
Expand Down

0 comments on commit 425c044

Please sign in to comment.