diff options
author | 2023-03-17 17:14:39 -0700 | |
---|---|---|
committer | 2023-03-17 17:14:39 -0700 | |
commit | 1d4cc63154366dbdbdb87c8da43753cdac13d995 (patch) | |
tree | 55e1702c8f89b4f9c11d371a5e54bd80af2b2ac0 /test/js/web/fetch/blob.test.ts | |
parent | c5f2b4264993739440f73d166280c9ec74e27c1c (diff) | |
download | bun-1d4cc63154366dbdbdb87c8da43753cdac13d995.tar.gz bun-1d4cc63154366dbdbdb87c8da43753cdac13d995.tar.zst bun-1d4cc63154366dbdbdb87c8da43753cdac13d995.zip |
Fix various fetch/response/request tests (#2416)
* fix most fetch tests, skip a few
* fastGet, toValueGC, and invalid init
* bigint unreachable, range error, log process as process
* remove extra fetch_headers
* remove js_type parameter, check isObject()
* throw invalid mime type error, use enum literal
* switch back to promise rejection
* RangeError pascal case
Diffstat (limited to 'test/js/web/fetch/blob.test.ts')
-rw-r--r-- | test/js/web/fetch/blob.test.ts | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/test/js/web/fetch/blob.test.ts b/test/js/web/fetch/blob.test.ts index 51b9c0ea8..ba44f8c1b 100644 --- a/test/js/web/fetch/blob.test.ts +++ b/test/js/web/fetch/blob.test.ts @@ -28,23 +28,6 @@ test("Blob.slice", () => { expect(blob.slice("text/plain;charset=utf-8").type).toBe("text/plain;charset=utf-8"); }); -test("Blob.prototype.type setter", () => { - var blob = new Blob(["Bun", "Foo"], { type: "text/foo" }); - expect(blob.type).toBe("text/foo"); - blob.type = "text/bar"; - expect(blob.type).toBe("text/bar"); - blob.type = "text/baz"; - expect(blob.type).toBe("text/baz"); - blob.type = "text/baz; charset=utf-8"; - expect(blob.type).toBe("text/baz; charset=utf-8"); - // @ts-expect-error - blob.type = NaN; - expect(blob.type).toBe(""); - // @ts-expect-error - blob.type = Symbol(); - expect(blob.type).toBe(""); -}); - test("new Blob", () => { var blob = new Blob(["Bun", "Foo"], { type: "text/foo" }); expect(blob.size).toBe(6); |