aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/js/bun/ffi/ffi.test.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/js/bun/ffi/ffi.test.js b/test/js/bun/ffi/ffi.test.js
index c54a3d3d9..5cefafaf8 100644
--- a/test/js/bun/ffi/ffi.test.js
+++ b/test/js/bun/ffi/ffi.test.js
@@ -10,6 +10,7 @@ import {
toArrayBuffer,
toBuffer,
viewSource,
+ suffix,
} from "bun:ffi";
const dlopen = (...args) => {
@@ -20,7 +21,7 @@ const dlopen = (...args) => {
throw err;
}
};
-const ok = existsSync("/tmp/bun-ffi-test.dylib");
+const ok = existsSync("/tmp/bun-ffi-test." + suffix);
it("ffi print", async () => {
await Bun.write(
@@ -626,3 +627,7 @@ it("dlopen throws an error instead of returning it", () => {
}
expect(err).toBeTruthy();
});
+
+it('suffix does not start with a "."', () => {
+ expect(suffix).not.toMatch(/^\./);
+});