summaryrefslogtreecommitdiff
path: root/cli/tests
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests')
-rw-r--r--cli/tests/unit_node/process_test.ts17
1 files changed, 17 insertions, 0 deletions
diff --git a/cli/tests/unit_node/process_test.ts b/cli/tests/unit_node/process_test.ts
index 78c5fcc97..1f4638b91 100644
--- a/cli/tests/unit_node/process_test.ts
+++ b/cli/tests/unit_node/process_test.ts
@@ -259,6 +259,23 @@ Deno.test({
});
Deno.test({
+ name: "process.argv0",
+ fn() {
+ assertEquals(typeof process.argv0, "string");
+ assert(
+ process.argv0.match(/[^/\\]*deno[^/\\]*$/),
+ "deno included in the file name of argv[0]",
+ );
+ // Setting should be a noop
+ process.argv0 = "foobar";
+ assert(
+ process.argv0.match(/[^/\\]*deno[^/\\]*$/),
+ "deno included in the file name of argv[0]",
+ );
+ },
+});
+
+Deno.test({
name: "process.execArgv",
fn() {
assert(Array.isArray(process.execArgv));