diff options
author | 2023-03-05 18:54:00 +0200 | |
---|---|---|
committer | 2023-03-05 08:54:00 -0800 | |
commit | c7bfb3aa3acdd1c8b11782530110aaf417cb79b8 (patch) | |
tree | b5a14c85dc652142757790a2141ea9e9b574dc11 /test/bun.js/path.test.js | |
parent | 72737131581bd30fbae66b7de00dc88cee08e207 (diff) | |
download | bun-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.js | 1 |
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"], ], ], ]; |