From 56ba7f3c233fcf8c9478314956c70725179ed16f Mon Sep 17 00:00:00 2001 From: Satya Rohith Date: Thu, 2 May 2024 12:10:22 +0530 Subject: fix(ext/node): support delete process.env.var (#23647) Closes https://github.com/denoland/deno/issues/23641 --- tests/unit_node/process_test.ts | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests/unit_node') 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); }, }); -- cgit v1.2.3