Use hash for body in formData tests
I couldn't find any instances of body being an array when testing formData with real specs... I think this was a mistake.
This commit is contained in:
@@ -132,10 +132,10 @@ describe("curlify", function() {
|
|||||||
url: "http://example.com",
|
url: "http://example.com",
|
||||||
method: "POST",
|
method: "POST",
|
||||||
headers: { "content-type": "multipart/form-data" },
|
headers: { "content-type": "multipart/form-data" },
|
||||||
body: [
|
body: {
|
||||||
["id", "123"],
|
id: "123",
|
||||||
["name", "Sahar"]
|
name: "Sahar"
|
||||||
]
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let curlified = curl(Im.fromJS(req))
|
let curlified = curl(Im.fromJS(req))
|
||||||
@@ -152,10 +152,10 @@ describe("curlify", function() {
|
|||||||
url: "http://example.com",
|
url: "http://example.com",
|
||||||
method: "POST",
|
method: "POST",
|
||||||
headers: { "content-type": "multipart/form-data" },
|
headers: { "content-type": "multipart/form-data" },
|
||||||
body: [
|
body: {
|
||||||
["id", "123"],
|
id: "123",
|
||||||
["file", file]
|
file
|
||||||
]
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let curlified = curl(Im.fromJS(req))
|
let curlified = curl(Im.fromJS(req))
|
||||||
|
|||||||
Reference in New Issue
Block a user