aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorGravatar dave caruso <me@paperdave.net> 2023-08-04 16:08:50 -0700
committerGravatar GitHub <noreply@github.com> 2023-08-04 16:08:50 -0700
commitd196aa2de6074affd2ec8b4524302f214161fb37 (patch)
tree8285ce8ac9acfd8c850d4af2f079ddb113410790 /test
parentbdbc21ff7bc0bb1d2215a0a5bd892eaade41e76f (diff)
downloadbun-d196aa2de6074affd2ec8b4524302f214161fb37.tar.gz
bun-d196aa2de6074affd2ec8b4524302f214161fb37.tar.zst
bun-d196aa2de6074affd2ec8b4524302f214161fb37.zip
FFI typo (#3973)
* FFI typo * add tests * it was a newline
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(/^\./);
+});