aboutsummaryrefslogtreecommitdiff
path: root/test/bun.js/path.test.js
diff options
context:
space:
mode:
authorGravatar Alex Lam S.L <alexlamsl@gmail.com> 2023-03-05 18:54:00 +0200
committerGravatar GitHub <noreply@github.com> 2023-03-05 08:54:00 -0800
commitc7bfb3aa3acdd1c8b11782530110aaf417cb79b8 (patch)
treeb5a14c85dc652142757790a2141ea9e9b574dc11 /test/bun.js/path.test.js
parent72737131581bd30fbae66b7de00dc88cee08e207 (diff)
downloadbun-c7bfb3aa3acdd1c8b11782530110aaf417cb79b8.tar.gz
bun-c7bfb3aa3acdd1c8b11782530110aaf417cb79b8.tar.zst
bun-c7bfb3aa3acdd1c8b11782530110aaf417cb79b8.zip
consider current working directory when resolving relative paths (#2313)
* consider current working directory when resolving relative paths fixes #2298 * comment test --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
Diffstat (limited to 'test/bun.js/path.test.js')
-rw-r--r--test/bun.js/path.test.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/bun.js/path.test.js b/test/bun.js/path.test.js
index 176d98c8e..ad5688ea7 100644
--- a/test/bun.js/path.test.js
+++ b/test/bun.js/path.test.js
@@ -274,6 +274,7 @@ it("path.relative", () => {
["/baz-quux", "/baz", "../baz"],
["/baz", "/baz-quux", "../baz-quux"],
["/page1/page2/foo", "/", "../../.."],
+ [process.cwd(), "foo", "foo"],
],
],
];