From 6405b5f454e140b0d79b603b0627debd246c7b9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Fri, 4 Aug 2023 14:31:13 +0200 Subject: fix(node): polyfill process.title (#20044) Closes https://github.com/denoland/deno/issues/19777 --- cli/tests/unit_node/process_test.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'cli/tests') diff --git a/cli/tests/unit_node/process_test.ts b/cli/tests/unit_node/process_test.ts index 7e927a8ad..461afb9f6 100644 --- a/cli/tests/unit_node/process_test.ts +++ b/cli/tests/unit_node/process_test.ts @@ -764,3 +764,13 @@ Deno.test({ assert(typeof process.stdout.isTTY === "boolean"); }, }); + +Deno.test({ + name: "process.title", + fn() { + assertEquals(process.title, "deno"); + // Verify that setting the value has no effect. + process.title = "foo"; + assertEquals(process.title, "deno"); + }, +}); -- cgit v1.2.3