From 3f0685d079fdae9b0963a7bbc18e174b482ec45c Mon Sep 17 00:00:00 2001 From: Dan Adajian Date: Mon, 6 Jan 2025 09:15:48 -0600 Subject: [PATCH] fix tests --- test/helpers/initiate-deployment.test.ts | 4 ++-- test/helpers/notify-pipeline-complete.test.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/helpers/initiate-deployment.test.ts b/test/helpers/initiate-deployment.test.ts index 35e518a5..135b1ade 100644 --- a/test/helpers/initiate-deployment.test.ts +++ b/test/helpers/initiate-deployment.test.ts @@ -100,8 +100,8 @@ describe('initiateDeployment', () => { }); }); - it('should call createCommitStatus with correct params on pull_request event', async () => { - context.eventName = 'pull_request'; + it('should call createCommitStatus with correct params on non merge_group event', async () => { + context.eventName = 'some_event'; await initiateDeployment({ sha, environment, diff --git a/test/helpers/notify-pipeline-complete.test.ts b/test/helpers/notify-pipeline-complete.test.ts index c03326bc..589a9ef4 100644 --- a/test/helpers/notify-pipeline-complete.test.ts +++ b/test/helpers/notify-pipeline-complete.test.ts @@ -60,8 +60,8 @@ jest.mock('../../src/helpers/set-deployment-status'); describe('notify-pipeline-complete', () => { const description = 'Pipeline clear.'; - it('should notify that the pipeline is clear on pull_request event', async () => { - context.eventName = 'pull_request'; + it('should notify that the pipeline is clear on non merge_group event', async () => { + context.eventName = 'some_event'; await notifyPipelineComplete({}); expect(octokit.pulls.list).toHaveBeenCalledWith({