From f59f8858243d4b8a0ca7beeb2af5b99a6777db6d Mon Sep 17 00:00:00 2001 From: Erjan Gavalji Date: Tue, 28 Apr 2015 14:29:15 +0300 Subject: [PATCH] Cheat the TypeScript compilse that removed the tag before the try-catch block --- apps/tests/http-tests.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/tests/http-tests.ts b/apps/tests/http-tests.ts index 4e9678e3f..a3c0dd905 100644 --- a/apps/tests/http-tests.ts +++ b/apps/tests/http-tests.ts @@ -374,9 +374,11 @@ export var test_request_jsonAsContentSentAndReceivedProperly = function (done) { headers: { "Content-Type": "application/json" }, content: JSON.stringify({ MyVariableOne: "ValueOne", MyVariableTwo: "ValueTwo" }) }).then(function (response) { + // result = response.content.toJSON(); + // result = response.content.toJSON(); - // - try { + try + { TKUnit.assert(result["json"]["MyVariableOne"] === "ValueOne" && result["json"]["MyVariableTwo"] === "ValueTwo", "Content not sent/received properly!"); done(null); }