aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-09-21 06:04:58 -0700
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-09-21 06:04:58 -0700
commit6abc9af47224fbfc5e13c11cff3e11fb21c1180a (patch)
treea635f4c13836d4256c968923c52f3f5169daf66b
parente1cf08b3a6fb33f0c90837178fc36caeacb346e5 (diff)
downloadbun-6abc9af47224fbfc5e13c11cff3e11fb21c1180a.tar.gz
bun-6abc9af47224fbfc5e13c11cff3e11fb21c1180a.tar.zst
bun-6abc9af47224fbfc5e13c11cff3e11fb21c1180a.zip
Add another test
-rw-r--r--test/js/bun/http/serve.test.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/js/bun/http/serve.test.ts b/test/js/bun/http/serve.test.ts
index 8bae503b4..c9fd47475 100644
--- a/test/js/bun/http/serve.test.ts
+++ b/test/js/bun/http/serve.test.ts
@@ -1207,3 +1207,8 @@ it("#5859 json", async () => {
expect(await response.text()).toBe("FAIL");
await server.stop(true);
});
+
+it("#5859 arrayBuffer", async () => {
+ await Bun.write("/tmp/bad", new Uint8Array([0xfd]));
+ expect(async () => await Bun.file("/tmp/bad").json()).toThrow();
+});