aboutsummaryrefslogtreecommitdiff
path: root/test/bun.js/fetch.test.js
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-09-28 23:43:40 -0700
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-09-28 23:43:40 -0700
commit3d35fae8904349fb7edd184851501d515ef7642b (patch)
treecadacc8e306d0ae210c0b221287e91b10eed4d49 /test/bun.js/fetch.test.js
parent1636291b03f2f8851890edc598c65c886e024edb (diff)
downloadbun-3d35fae8904349fb7edd184851501d515ef7642b.tar.gz
bun-3d35fae8904349fb7edd184851501d515ef7642b.tar.zst
bun-3d35fae8904349fb7edd184851501d515ef7642b.zip
Add some tests for request body streaming
Need to fix an off-by-one error with Blob it seems
Diffstat (limited to 'test/bun.js/fetch.test.js')
-rw-r--r--test/bun.js/fetch.test.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/bun.js/fetch.test.js b/test/bun.js/fetch.test.js
index a4ab0bfa6..9b8cbfabd 100644
--- a/test/bun.js/fetch.test.js
+++ b/test/bun.js/fetch.test.js
@@ -144,6 +144,8 @@ function testBlobInterface(blobbyConstructor, hasBlobFn) {
if (withGC) gc();
expect(blobed.size).toBe(size);
if (withGC) gc();
+ blobed.type = "";
+ if (withGC) gc();
expect(blobed.type).toBe("");
if (withGC) gc();
blobed.type = "application/json";