Skip to content

Commit

Permalink
Fix tests in GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
codykaup committed Oct 8, 2024
1 parent 5424fa5 commit 6a9e017
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions node-src/git/getCommitAndBranch.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ describe('getCommitAndBranch', () => {
it('throws on missing variable', async () => {
process.env.GITHUB_EVENT_NAME = 'pull_request';
process.env.GITHUB_HEAD_REF = 'github';
process.env.GITHUB_SHA = '';
await expect(getCommitAndBranch(ctx)).rejects.toThrow('Missing GitHub environment variable');
process.env.GITHUB_HEAD_REF = '';
process.env.GITHUB_SHA = '3276c796';
Expand Down

0 comments on commit 6a9e017

Please sign in to comment.