From 3d35fae8904349fb7edd184851501d515ef7642b Mon Sep 17 00:00:00 2001 From: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Date: Wed, 28 Sep 2022 23:43:40 -0700 Subject: Add some tests for request body streaming Need to fix an off-by-one error with Blob it seems --- test/bun.js/fetch.test.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/bun.js/fetch.test.js') 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"; -- cgit v1.2.3