aboutsummaryrefslogtreecommitdiff
path: root/test/js/web/fetch/fetch.test.ts
diff options
context:
space:
mode:
authorGravatar Ciro Spaciari <ciro.spaciari@gmail.com> 2023-05-10 20:38:52 -0300
committerGravatar GitHub <noreply@github.com> 2023-05-10 16:38:52 -0700
commit85b4be5f7189e51e63672ddc874e7c6e09ae8bef (patch)
treeeb19dd2bd014ee4c2798c8ce863ac587c186318f /test/js/web/fetch/fetch.test.ts
parent643aa27a030e56580c215218247f2979d4901b46 (diff)
downloadbun-85b4be5f7189e51e63672ddc874e7c6e09ae8bef.tar.gz
bun-85b4be5f7189e51e63672ddc874e7c6e09ae8bef.tar.zst
bun-85b4be5f7189e51e63672ddc874e7c6e09ae8bef.zip
fix(fetch) fix fetch inheritance (#2842)
* patch fetch function inheritance * fmt * fix reserveCapacity and number of arguments for fetch * change Bun.fetch to use Fetch.jsFunction * merge Fetch.jsFunction and Fetch.call * remove commented code
Diffstat (limited to 'test/js/web/fetch/fetch.test.ts')
-rw-r--r--test/js/web/fetch/fetch.test.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/js/web/fetch/fetch.test.ts b/test/js/web/fetch/fetch.test.ts
index cc59ba3f6..6e07db40b 100644
--- a/test/js/web/fetch/fetch.test.ts
+++ b/test/js/web/fetch/fetch.test.ts
@@ -1129,3 +1129,8 @@ it("#874", () => {
expect(new Request(new Request("https://example.com")).url).toBe("https://example.com");
expect(new Request({ url: "https://example.com" }).url).toBe("https://example.com");
});
+
+it("#2794", () => {
+ expect(typeof globalThis.fetch.bind).toBe("function");
+ expect(typeof Bun.fetch.bind).toBe("function");
+});