From 04032831c3e1e90c876efca08130d72f8b671723 Mon Sep 17 00:00:00 2001 From: Mihajlo Date: Thu, 22 Jul 2021 13:43:50 +0200 Subject: [PATCH] fix: debug on test & make error and parse log test --- src/job-execution/WebJobExecutor.ts | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/src/job-execution/WebJobExecutor.ts b/src/job-execution/WebJobExecutor.ts index 30a6e2f..a9070dd 100644 --- a/src/job-execution/WebJobExecutor.ts +++ b/src/job-execution/WebJobExecutor.ts @@ -101,20 +101,9 @@ export class WebJobExecutor extends BaseJobExecutor { this.appendRequest(res, sasJob, config.debug) resolve(jsonResponse) } - if (this.serverType === ServerType.Sas9 && config.debug) { - const jsonResponse = parseWeboutResponse(res.result as string) - if (jsonResponse === '') { - throw new Error( - 'Valid JSON could not be extracted from response.' - ) - } - - isValidJson(jsonResponse) - this.appendRequest(res, sasJob, config.debug) - resolve(res.result) - } - isValidJson(res.result as string) + this.appendRequest(res, sasJob, config.debug) + isValidJson(res.result as string) resolve(res.result) }) .catch(async (e: Error) => {