style(tests): format all files

This commit is contained in:
Vasil Chimev
2019-08-22 13:54:47 +03:00
parent 0a5ac1a527
commit 7412ce82b3
142 changed files with 589 additions and 557 deletions

View File

@@ -128,7 +128,7 @@ export var test_getJSON_fail_when_result_is_not_JSONP = function (done) {
});
};
export var test_gzip_request_explicit = function(done) {
export var test_gzip_request_explicit = function (done) {
var result;
http.request({
@@ -136,7 +136,8 @@ export var test_gzip_request_explicit = function(done) {
method: "GET",
headers: {
"Accept-Encoding": "gzip"
}}).then(function (r) {
}
}).then(function (r) {
result = r;
try {
TKUnit.assert(typeof (JSON.stringify(result)) === "string", "Result from gzipped stream should be valid JSON object!");
@@ -150,12 +151,13 @@ export var test_gzip_request_explicit = function(done) {
});
};
export var test_gzip_request_implicit = function(done) {
export var test_gzip_request_implicit = function (done) {
var result;
http.request({
url: "https://postman-echo.com/gzip",
method: "GET"}).then(function (r) {
method: "GET"
}).then(function (r) {
result = r;
try {
TKUnit.assert(typeof (JSON.stringify(result)) === "string", "Result from gzipped stream should be valid JSON object!");
@@ -634,12 +636,12 @@ export var test_request_jsonAsContentSentAndReceivedProperly = function (done) {
};
declare var Worker: any;
export var test_getString_WorksProperlyInWorker = function(done) {
export var test_getString_WorksProperlyInWorker = function (done) {
let worker = new Worker("./http-string-worker");
worker.onmessage = function(msg) {
worker.onmessage = function (msg) {
done();
};
worker.onerror = function(e) {
worker.onerror = function (e) {
done(e);
};
};