summaryrefslogtreecommitdiff
path: root/std/node/process_test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'std/node/process_test.ts')
-rw-r--r--std/node/process_test.ts10
1 files changed, 8 insertions, 2 deletions
diff --git a/std/node/process_test.ts b/std/node/process_test.ts
index 2a789a5d7..9b2c050a7 100644
--- a/std/node/process_test.ts
+++ b/std/node/process_test.ts
@@ -131,8 +131,14 @@ Deno.test({
Deno.test({
name: "process.env",
fn() {
- assertEquals(typeof process.env.PATH, "string");
- assertEquals(typeof env.PATH, "string");
+ Deno.env.set("HELLO", "WORLD");
+
+ assertEquals(typeof (process.env.HELLO), "string");
+ assertEquals(process.env.HELLO, "WORLD");
+
+ // TODO(caspervonb) test the globals in a different setting (they're broken)
+ // assertEquals(typeof env.HELLO, "string");
+ // assertEquals(env.HELLO, "WORLD");
},
});