Skip to content

Commit

Permalink
Merge commit 'a053646dcb173dd51ac0dc5f91d126ceb4438edb'
Browse files Browse the repository at this point in the history
# Conflicts:
#	package-lock.json
  • Loading branch information
martinhaintz committed Apr 24, 2022
2 parents 2a1ccd5 + a053646 commit d122d2a
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@ const process = require("process");
const cp = require("child_process");
const path = require("path");
const ip = path.join(__dirname, "index.js");
const oldEnv = process.env;

beforeEach(() => {
process.env = { ...oldEnv };
});

test("test parse action.yaml file", () => {
process.env["INPUT_FILE"] = "action.yml";
Expand All @@ -24,7 +19,7 @@ test("test parse action.yaml file", () => {
test("test parse Google AppEngine test.yaml file", () => {
process.env["INPUT_FILE"] = "testfiles/test_gae.yaml";
process.env["INPUT_DELIMITER"] = "_";
process.env["INPUT_EXPORT_TO_ENVS"] = true;
process.env["INPUT_EXPORT_TO_ENVS"] = "true";

const result = cp.execSync(`node ${ip}`, { env: process.env }).toString();

Expand All @@ -48,7 +43,7 @@ test("test parse one parameter at Google AppEngine test.yaml file", () => {
test("test parse Google AppEngine test.yaml file no export to envs", () => {
process.env["INPUT_FILE"] = "testfiles/test_gae.yaml";
process.env["INPUT_DELIMITER"] = "_";
process.env["INPUT_EXPORT_TO_ENVS"] = false;
process.env["INPUT_EXPORT_TO_ENVS"] = "false";

const result = cp.execSync(`node ${ip}`, { env: process.env }).toString();

Expand Down

0 comments on commit d122d2a

Please sign in to comment.