Skip to content

Commit

Permalink
augment test
Browse files Browse the repository at this point in the history
  • Loading branch information
danadajian committed Dec 16, 2024
1 parent c265931 commit 3516bb2
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion test/helpers/notify-pipeline-complete.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jest.mock('@actions/github', () => ({
data: [
{
name: 'some-branch',
commit: { sha: 'sha 1' }
commit: { sha: 'normal sha 1' }
},
{
name: 'gh-readonly-queue/merge-queue/pr-123-79a5ad2b1a46f6b5d77e02573937667979635f27',
Expand Down Expand Up @@ -90,6 +90,13 @@ describe('setOpenPullRequestStatus', () => {
description,
...context.repo
});
expect(octokit.repos.createCommitStatus).not.toHaveBeenCalledWith({
sha: 'normal sha 1',
context: DEFAULT_PIPELINE_STATUS,
state: 'success',
description,
...context.repo
});
expect(octokit.repos.createCommitStatus).toHaveBeenCalledWith({
sha: 'merge queue sha 1',
context: DEFAULT_PIPELINE_STATUS,
Expand Down

0 comments on commit 3516bb2

Please sign in to comment.