Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
danadajian committed Jan 6, 2025
1 parent 672f236 commit 3f0685d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions test/helpers/initiate-deployment.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions test/helpers/notify-pipeline-complete.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit 3f0685d

Please sign in to comment.