Skip to content

Commit b7028af

Browse files
committed
Make sure env is reset between tests
1 parent ccee4c6 commit b7028af

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

lib/actions-util.test.js

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/actions-util.test.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/actions-util.test.ts

+1
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ test("getRef() returns CODE_SCANNING_REF as a fallback for GITHUB_REF", async (t
9494
const expectedRef = "refs/pull/1/HEAD";
9595
const currentSha = "a".repeat(40);
9696
process.env["CODE_SCANNING_REF"] = expectedRef;
97+
process.env["GITHUB_REF"] = "";
9798
process.env["GITHUB_SHA"] = currentSha;
9899

99100
const actualRef = await actionsutil.getRef();

0 commit comments

Comments
 (0)