aboutsummaryrefslogtreecommitdiff
path: root/test/bun.js/process.test.js
diff options
context:
space:
mode:
authorGravatar Dylan Conway <dylan.conway567@gmail.com> 2023-01-12 19:10:41 -0800
committerGravatar Dylan Conway <dylan.conway567@gmail.com> 2023-01-12 19:10:41 -0800
commit766f8ceebc76dd749ba5c104f802c7ebda289db9 (patch)
treef84ee560938188261f7f5604a65b83aae354a646 /test/bun.js/process.test.js
parentc03f7c998dd22689412658177e3a5736ce6b9034 (diff)
parent32f8cb31be6fb5b0b9aea1c6d4e95d118e8ef816 (diff)
downloadbun-766f8ceebc76dd749ba5c104f802c7ebda289db9.tar.gz
bun-766f8ceebc76dd749ba5c104f802c7ebda289db9.tar.zst
bun-766f8ceebc76dd749ba5c104f802c7ebda289db9.zip
Merge branch 'main' into dylan/github-dependencies
Diffstat (limited to 'test/bun.js/process.test.js')
-rw-r--r--test/bun.js/process.test.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/test/bun.js/process.test.js b/test/bun.js/process.test.js
index be627b61c..8ea57a28b 100644
--- a/test/bun.js/process.test.js
+++ b/test/bun.js/process.test.js
@@ -1,6 +1,7 @@
-import { resolveSync } from "bun";
+import { resolveSync, which } from "bun";
import { describe, expect, it } from "bun:test";
import { readFileSync, realpathSync } from "fs";
+import { basename } from "path";
it("process", () => {
// this property isn't implemented yet but it should at least return a string
@@ -106,11 +107,12 @@ it("process.version starts with v", () => {
});
it("process.argv0", () => {
- expect(process.argv0).toBe(process.argv[0]);
+ expect(basename(process.argv0)).toBe(basename(process.argv[0]));
});
it("process.execPath", () => {
- expect(process.execPath).toBe(realpathSync(process.argv0));
+ expect(process.execPath).not.toBe(basename(process.argv0));
+ expect(which(process.execPath)).not.toBeNull();
});
it("process.uptime()", () => {