aboutsummaryrefslogtreecommitdiff
path: root/test/js/web/fetch/fetch.test.ts
diff options
context:
space:
mode:
authorGravatar Ciro Spaciari <ciro.spaciari@gmail.com> 2023-07-06 16:01:16 -0300
committerGravatar GitHub <noreply@github.com> 2023-07-06 12:01:16 -0700
commit95ddfcc4377350b1d604c39c36562bde45fad2a9 (patch)
tree0140dad024ebf3521a95bfcfee95418050df8198 /test/js/web/fetch/fetch.test.ts
parentee57935260214cbd6f580a756903df7eebe495ef (diff)
downloadbun-95ddfcc4377350b1d604c39c36562bde45fad2a9.tar.gz
bun-95ddfcc4377350b1d604c39c36562bde45fad2a9.tar.zst
bun-95ddfcc4377350b1d604c39c36562bde45fad2a9.zip
fix query without slash (#3547)
Diffstat (limited to 'test/js/web/fetch/fetch.test.ts')
-rw-r--r--test/js/web/fetch/fetch.test.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/js/web/fetch/fetch.test.ts b/test/js/web/fetch/fetch.test.ts
index 6b87cc613..768818420 100644
--- a/test/js/web/fetch/fetch.test.ts
+++ b/test/js/web/fetch/fetch.test.ts
@@ -1175,6 +1175,10 @@ it("#2794", () => {
expect(typeof Bun.fetch.bind).toBe("function");
});
+it("#3545", () => {
+ expect(() => fetch("http://example.com?a=b")).not.toThrow();
+});
+
it("invalid header doesnt crash", () => {
expect(() =>
fetch("http://example.com", {