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:
Kyle Shockey
2017-08-10 18:27:03 -07:00
parent 964d528735
commit 168e203040

View File

@@ -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))