Skip to content

Commit b1da4f3

Browse files
committed
improve test a bit
1 parent 36c48ce commit b1da4f3

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/test/java/org/htmlunit/javascript/host/fetch/FetchTest.java

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ public void fetchPostFormData() throws Exception {
515515
* @throws Exception if the test fails
516516
*/
517517
@Test
518-
@Alerts({"200", "OK", "true", "[object\\sPromise]§Hello1\\nHello1", "Hello2\\nHello2"})
518+
@Alerts({"200", "OK", "true", "test0,Hello1\\nHello1,test1,Hello2\\nHello2"})
519519
public void fetchMultipartFormData() throws Exception {
520520
final String html = DOCTYPE_HTML
521521
+ "<html>\n"
@@ -528,13 +528,10 @@ public void fetchMultipartFormData() throws Exception {
528528
+ " log(response.statusText);\n"
529529
+ " log(response.ok);\n"
530530

531-
+ " let fd = response.formData();"
532-
+ " log(fd);\n"
533-
+ " return fd;\n"
531+
+ " return response.formData();\n"
534532
+ " })\n"
535533
+ " .then(formData => {\n"
536-
+ " log(formData.get('test0'));\n"
537-
+ " log(formData.get('test1'));\n"
534+
+ " log(Array.from(formData.entries()));\n"
538535
+ " })\n"
539536
+ " .catch(e => log(e.message));\n"
540537
+ " </script>\n"

0 commit comments

Comments
 (0)