Skip to content

Commit

Permalink
Make sure env is reset between tests
Browse files Browse the repository at this point in the history
  • Loading branch information
orhantoy committed Dec 13, 2022
1 parent ccee4c6 commit b7028af
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/actions-util.test.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/actions-util.test.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/actions-util.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ test("getRef() returns CODE_SCANNING_REF as a fallback for GITHUB_REF", async (t
const expectedRef = "refs/pull/1/HEAD";
const currentSha = "a".repeat(40);
process.env["CODE_SCANNING_REF"] = expectedRef;
process.env["GITHUB_REF"] = "";
process.env["GITHUB_SHA"] = currentSha;

const actualRef = await actionsutil.getRef();
Expand Down

0 comments on commit b7028af

Please sign in to comment.