aboutsummaryrefslogtreecommitdiff
path: root/test/js/node/path/path.test.js
diff options
context:
space:
mode:
authorGravatar hiroki osame <hiroki.osame@gmail.com> 2023-04-05 03:31:58 -0400
committerGravatar GitHub <noreply@github.com> 2023-04-05 00:31:58 -0700
commitfd5bb6b201451e757fbe4a96bfb4032b9413a434 (patch)
treea86658c1f44e65faa54a7f960516d0b0b2d72426 /test/js/node/path/path.test.js
parentd8360ab3cfd080b1a3ad72fa4ff623d8c4cf9fe7 (diff)
downloadbun-fd5bb6b201451e757fbe4a96bfb4032b9413a434.tar.gz
bun-fd5bb6b201451e757fbe4a96bfb4032b9413a434.tar.zst
bun-fd5bb6b201451e757fbe4a96bfb4032b9413a434.zip
fix: modules to have null prototype (#2561)
Diffstat (limited to 'test/js/node/path/path.test.js')
-rw-r--r--test/js/node/path/path.test.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/js/node/path/path.test.js b/test/js/node/path/path.test.js
index ad5688ea7..ce41ca10f 100644
--- a/test/js/node/path/path.test.js
+++ b/test/js/node/path/path.test.js
@@ -9,6 +9,10 @@ const strictEqual = (...args) => {
expect(true).toBe(true);
};
+it('should not inherit Object.prototype', () => {
+ expect(path).not.toHaveProperty('toString');
+});
+
it("path.basename", () => {
strictEqual(path.basename(file), "path.test.js");
strictEqual(path.basename(file, ".js"), "path.test");