diff options
author | 2023-06-17 19:18:02 -0700 | |
---|---|---|
committer | 2023-06-17 19:18:02 -0700 | |
commit | 65f1e426849aa705c0fd7578134b8287f10d0176 (patch) | |
tree | 134aed84da5b4bf2310a2c8dd6a9f411e9572ba4 /test/js/node/process/process.test.js | |
parent | b0e8f596a2a3a5bd3f70d6d03de35c290d34d35c (diff) | |
parent | 065713aeca2ae3013bdf5b3d2f04263459631598 (diff) | |
download | bun-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.js | 10 |
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); +}); |