Skip to content

Commit

Permalink
fix(test): os default proc envs on macos
Browse files Browse the repository at this point in the history
  • Loading branch information
Yohe-Am committed Apr 10, 2024
1 parent 79cc04a commit 0d9fa42
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions mod.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -696,10 +696,6 @@ Deno.test("env should be clean slate when clearEnv is set", async () => {
const text = await $`printenv`.clearEnv().text();
assertEquals(text, "");
}
{
const text = await $`deno eval 'console.log(JSON.stringify(Deno.env.toObject()))'`.clearEnv().text();
assertEquals(text, "{}");
}
Deno.env.set("DAX_TVAR", "123");
try {
const text = await $`deno eval 'console.log("DAX_TVAR: " + Deno.env.get("DAX_TVAR"))'`.clearEnv().text();
Expand All @@ -712,11 +708,6 @@ Deno.test("env should be clean slate when clearEnv is set", async () => {
Deno.test("clearEnv + exportEnv should not clear out real environment", async () => {
Deno.env.set("DAX_TVAR", "123");
try {
const text1 = await $`deno eval 'console.log(JSON.stringify(Deno.env.toObject()))'`
.clearEnv()
.exportEnv()
.text();
assertEquals(text1, "{}");
const text =
await $`deno eval 'console.log("VAR: " + Deno.env.get("DAX_TVAR") + " VAR2: " + Deno.env.get("DAX_TVAR2"))'`
.env("DAX_TVAR2", "shake it shake")
Expand Down

0 comments on commit 0d9fa42

Please sign in to comment.