Skip to content

Commit 6d1826a

Browse files
Update test
1 parent de52ac8 commit 6d1826a

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

tests/Global__test.js

Lines changed: 15 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/Global__test.res

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,18 @@ let response2 = await fetch(
1414
body: BodyInit.fromString(`secret=foo&response=bar`),
1515
},
1616
)
17+
18+
let response3 = await fetch_withRequest(
19+
Request.make2(~input="https://rescript-lang.org/"),
20+
~init={
21+
method: "POST",
22+
headers: HeadersInit.fromDict(
23+
dict{
24+
"Content-Type": "application/x-www-form-urlencoded",
25+
},
26+
),
27+
body: BodyInit.fromString(`secret=foo&response=bar`),
28+
},
29+
)
30+
31+
removeEventListener(Mousedown, MouseEvent.preventDefault, ~options={capture: false})

0 commit comments

Comments
 (0)