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

fix: added debug override on executeScriptSASViya and added tests for same function

This commit is contained in:
Mihajlo Medjedovic
2020-12-03 12:25:42 +01:00
parent 6eb2ceaf53
commit 761428502a
2 changed files with 70 additions and 6 deletions

View File

@@ -206,11 +206,20 @@ export default class SASjs {
return await this.sasViyaApiClient!.createSession(contextName, accessToken)
}
/**
* Executes the sas code against given sas server
* @param fileName - name of the file to run.
* @param linesOfCode - lines of sas code from the file to run.
* @param contextName - context name override on which code will be run.
* @param accessToken - the access tokne to authorizing the request.
* @param debug - debug flag override
*/
public async executeScriptSASViya(
fileName: string,
linesOfCode: string[],
contextName: string,
accessToken?: string
accessToken?: string,
debug?: boolean
) {
this.isMethodSupported('executeScriptSASViya', ServerType.SASViya)
@@ -220,7 +229,7 @@ export default class SASjs {
contextName,
accessToken,
null,
this.sasjsConfig.debug
debug ? debug : this.sasjsConfig.debug
)
}