diff options
author | 2023-08-04 06:40:37 +0800 | |
---|---|---|
committer | 2023-08-03 15:40:37 -0700 | |
commit | a4d996c337605c40018e997900ee9638f3ea9edf (patch) | |
tree | 7074388542e37f4a5b209428762866f1dc97bef4 /test/js/node/path/path.test.js | |
parent | 08cf0d562ae81b4fb30aa5e599ca76056582ac5f (diff) | |
download | bun-a4d996c337605c40018e997900ee9638f3ea9edf.tar.gz bun-a4d996c337605c40018e997900ee9638f3ea9edf.tar.zst bun-a4d996c337605c40018e997900ee9638f3ea9edf.zip |
Fix edge case in `path.relative`. (#3952)
Close: #3924
Diffstat (limited to 'test/js/node/path/path.test.js')
-rw-r--r-- | test/js/node/path/path.test.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/js/node/path/path.test.js b/test/js/node/path/path.test.js index 030a7443a..103809d2e 100644 --- a/test/js/node/path/path.test.js +++ b/test/js/node/path/path.test.js @@ -469,6 +469,14 @@ it("path.relative", () => { ["/baz", "/baz-quux", "../baz-quux"], ["/page1/page2/foo", "/", "../../.."], [process.cwd(), "foo", "foo"], + ["/webpack", "/webpack", ""], + ["/webpack/", "/webpack", ""], + ["/webpack", "/webpack/", ""], + ["/webpack/", "/webpack/", ""], + ["/webpack-hot-middleware", "/webpack/buildin/module.js", "../webpack/buildin/module.js"], + ["/webp4ck-hot-middleware", "/webpack/buildin/module.js", "../webpack/buildin/module.js"], + ["/webpack-hot-middleware", "/webp4ck/buildin/module.js", "../webp4ck/buildin/module.js"], + ["/var/webpack-hot-middleware", "/var/webpack/buildin/module.js", "../webpack/buildin/module.js"], ], ], ]; |