1
0
mirror of https://github.com/sasjs/adapter.git synced 2026-01-05 19:50:06 +00:00

fix: utils import, tests fix, auto testing script

This commit is contained in:
2022-04-28 20:46:36 +02:00
parent aabe473ef6
commit 7b78f65c4a
8 changed files with 6248 additions and 2008 deletions

View File

@@ -168,13 +168,17 @@ export class WebJobExecutor extends BaseJobExecutor {
? res.result.log.map((logLine: any) => logLine.line).join('\n')
: res.result.log
const resObj =
this.serverType === ServerType.Sasjs
? {
result: res.result._webout,
log: parsedSasjsServerLog
}
: res
let resObj = res
if (this.serverType === ServerType.Sasjs) {
resObj = {
result: res.result._webout,
log: parsedSasjsServerLog
}
if (resObj.result.length < 1) throw new JobExecutionError(0, 'Job execution failed', resObj)
}
this.requestClient!.appendRequest(resObj, sasJob, config.debug)
let jsonResponse = res.result

View File

@@ -1,4 +1,4 @@
import { isSpecialMissing } from '@sasjs/utils'
import { isSpecialMissing } from '@sasjs/utils/input/validators'
/**
* Converts the given JSON object array to a CSV string.