From 86511af5e7488c643631f31f0085621f4c7dd9e8 Mon Sep 17 00:00:00 2001 From: vakrilov Date: Tue, 19 May 2015 16:46:17 +0300 Subject: [PATCH] Formatting --- apps/tests/http-tests.ts | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/apps/tests/http-tests.ts b/apps/tests/http-tests.ts index 22ee58dad..fc1d144e3 100644 --- a/apps/tests/http-tests.ts +++ b/apps/tests/http-tests.ts @@ -329,7 +329,8 @@ export var test_request_headersSentAndReceivedProperly = function (done) { var result; http.request({ - url: "https://httpbin.org/get", method: "GET", + url: "https://httpbin.org/get", + method: "GET", headers: { "Content-Type": "application/json" } }).then(function (response) { result = response.headers; @@ -349,7 +350,8 @@ export var test_request_contentSentAndReceivedProperly = function (done) { var result; http.request({ - url: "https://httpbin.org/post", method: "POST", + url: "https://httpbin.org/post", + method: "POST", headers: { "Content-Type": "application/x-www-form-urlencoded" }, content: "MyVariableOne=ValueOne&MyVariableTwo=ValueTwo" }).then(function (response) { @@ -372,7 +374,8 @@ export var test_request_NonStringHeadersSentAndReceivedProperly = function (done var postData = "MyVariableOne=ValueOne&MyVariableTwo=ValueTwo"; http.request({ - url: "https://httpbin.org/post", method: "POST", + url: "https://httpbin.org/post", + method: "POST", headers: { "Content-Type": "application/x-www-form-urlencoded", "Content-Length": postData.length }, content: postData }).then(function (response) { @@ -396,7 +399,8 @@ export var test_request_jsonAsContentSentAndReceivedProperly = function (done) { var result; http.request({ - url: "https://httpbin.org/post", method: "POST", + url: "https://httpbin.org/post", + method: "POST", headers: { "Content-Type": "application/json" }, content: JSON.stringify({ MyVariableOne: "ValueOne", MyVariableTwo: "ValueTwo" }) }).then(function (response) {