summaryrefslogtreecommitdiff
path: root/tests/unit_node/process_test.ts
diff options
context:
space:
mode:
authorSatya Rohith <me@satyarohith.com>2024-05-02 12:10:22 +0530
committerGitHub <noreply@github.com>2024-05-02 06:40:22 +0000
commit56ba7f3c233fcf8c9478314956c70725179ed16f (patch)
tree904968feb205676c89ed6212b35f375960034af5 /tests/unit_node/process_test.ts
parent66b66de96a78af6162e581c2986e3ef4ec8733c4 (diff)
fix(ext/node): support delete process.env.var (#23647)
Closes https://github.com/denoland/deno/issues/23641
Diffstat (limited to 'tests/unit_node/process_test.ts')
-rw-r--r--tests/unit_node/process_test.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/unit_node/process_test.ts b/tests/unit_node/process_test.ts
index 0ae0c2a7a..b92be2f3c 100644
--- a/tests/unit_node/process_test.ts
+++ b/tests/unit_node/process_test.ts
@@ -416,6 +416,9 @@ Deno.test({
assertEquals(process.env.HELLO, "false");
process.env.HELLO = "WORLD";
assertEquals(process.env.HELLO, "WORLD");
+
+ delete process.env.HELLO;
+ assertEquals(process.env.HELLO, undefined);
},
});