aboutsummaryrefslogtreecommitdiff
path: root/test/js/node/process/process.test.js
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <jarred@jarredsumner.com> 2023-06-17 19:18:02 -0700
committerGravatar GitHub <noreply@github.com> 2023-06-17 19:18:02 -0700
commit65f1e426849aa705c0fd7578134b8287f10d0176 (patch)
tree134aed84da5b4bf2310a2c8dd6a9f411e9572ba4 /test/js/node/process/process.test.js
parentb0e8f596a2a3a5bd3f70d6d03de35c290d34d35c (diff)
parent065713aeca2ae3013bdf5b3d2f04263459631598 (diff)
downloadbun-jarred/simplify.tar.gz
bun-jarred/simplify.tar.zst
bun-jarred/simplify.zip
Merge branch 'main' into jarred/simplifyjarred/simplify
Diffstat (limited to '')
-rw-r--r--test/js/node/process/process.test.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/js/node/process/process.test.js b/test/js/node/process/process.test.js
index f701be1b3..ee181e70c 100644
--- a/test/js/node/process/process.test.js
+++ b/test/js/node/process/process.test.js
@@ -1,6 +1,7 @@
import { resolveSync, which } from "bun";
import { describe, expect, it } from "bun:test";
import { existsSync, readFileSync, realpathSync } from "fs";
+import { bunExe } from "harness";
import { basename, resolve } from "path";
it("process", () => {
@@ -224,3 +225,12 @@ it("process.execArgv", () => {
it("process.binding", () => {
expect(() => process.binding("buffer")).toThrow();
});
+
+it("process.argv", () => {
+ expect(process.argv).toBeInstanceOf(Array);
+ expect(process.argv[0]).toBe(bunExe());
+ expect(process.argv).toEqual(Bun.argv);
+
+ // assert we aren't creating a new process.argv each call
+ expect(process.argv).toBe(process.argv);
+});