aboutsummaryrefslogtreecommitdiff
path: root/test/bun.js/dirname.test.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/bun.js/dirname.test.js')
-rw-r--r--test/bun.js/dirname.test.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/bun.js/dirname.test.js b/test/bun.js/dirname.test.js
new file mode 100644
index 000000000..98292dc49
--- /dev/null
+++ b/test/bun.js/dirname.test.js
@@ -0,0 +1,9 @@
+import { expect, it } from "bun:test";
+
+it("__dirname should work", () => {
+ expect(import.meta.dir).toBe(__dirname);
+});
+
+it("__filename should work", () => {
+ expect(import.meta.path).toBe(__filename);
+});