mirror of
https://github.com/sasjs/adapter.git
synced 2026-01-07 12:30:06 +00:00
refactor(sasjs-request-client): used SASJS_LOGS_SEPARATOR const
This commit is contained in:
@@ -126,9 +126,9 @@ NOTE: The SAS System used:
|
|||||||
it('should parse response with 1 log', () => {
|
it('should parse response with 1 log', () => {
|
||||||
const response: AxiosResponse<any> = {
|
const response: AxiosResponse<any> = {
|
||||||
data: `${webout}
|
data: `${webout}
|
||||||
SASJS_LOGS_SEPARATOR_163ee17b6ff24f028928972d80a26784
|
${SASJS_LOGS_SEPARATOR}
|
||||||
${log}
|
${log}
|
||||||
SASJS_LOGS_SEPARATOR_163ee17b6ff24f028928972d80a26784`,
|
${SASJS_LOGS_SEPARATOR}`,
|
||||||
status,
|
status,
|
||||||
statusText: 'ok',
|
statusText: 'ok',
|
||||||
headers: { etag },
|
headers: { etag },
|
||||||
@@ -153,9 +153,9 @@ ${log}
|
|||||||
it('should parse response with 1 log and printOutput', () => {
|
it('should parse response with 1 log and printOutput', () => {
|
||||||
const response: AxiosResponse<any> = {
|
const response: AxiosResponse<any> = {
|
||||||
data: `${webout}
|
data: `${webout}
|
||||||
SASJS_LOGS_SEPARATOR_163ee17b6ff24f028928972d80a26784
|
${SASJS_LOGS_SEPARATOR}
|
||||||
${log}
|
${log}
|
||||||
SASJS_LOGS_SEPARATOR_163ee17b6ff24f028928972d80a26784
|
${SASJS_LOGS_SEPARATOR}
|
||||||
${printOutput}`,
|
${printOutput}`,
|
||||||
status,
|
status,
|
||||||
statusText: 'ok',
|
statusText: 'ok',
|
||||||
@@ -182,16 +182,16 @@ ${printOutput}`
|
|||||||
|
|
||||||
it('should parse response with nested logs', () => {
|
it('should parse response with nested logs', () => {
|
||||||
const logWithNestedLog = `root log start
|
const logWithNestedLog = `root log start
|
||||||
SASJS_LOGS_SEPARATOR_163ee17b6ff24f028928972d80a26784
|
${SASJS_LOGS_SEPARATOR}
|
||||||
${log}
|
${log}
|
||||||
SASJS_LOGS_SEPARATOR_163ee17b6ff24f028928972d80a26784
|
${SASJS_LOGS_SEPARATOR}
|
||||||
root log end`
|
root log end`
|
||||||
|
|
||||||
const response: AxiosResponse<any> = {
|
const response: AxiosResponse<any> = {
|
||||||
data: `${webout}
|
data: `${webout}
|
||||||
SASJS_LOGS_SEPARATOR_163ee17b6ff24f028928972d80a26784
|
${SASJS_LOGS_SEPARATOR}
|
||||||
${logWithNestedLog}
|
${logWithNestedLog}
|
||||||
SASJS_LOGS_SEPARATOR_163ee17b6ff24f028928972d80a26784`,
|
${SASJS_LOGS_SEPARATOR}`,
|
||||||
status,
|
status,
|
||||||
statusText: 'ok',
|
statusText: 'ok',
|
||||||
headers: { etag },
|
headers: { etag },
|
||||||
@@ -215,21 +215,21 @@ ${logWithNestedLog}
|
|||||||
|
|
||||||
it('should parse response with nested logs and printOutput', () => {
|
it('should parse response with nested logs and printOutput', () => {
|
||||||
const logWithNestedLog = `root log start
|
const logWithNestedLog = `root log start
|
||||||
SASJS_LOGS_SEPARATOR_163ee17b6ff24f028928972d80a26784
|
${SASJS_LOGS_SEPARATOR}
|
||||||
${log}
|
${log}
|
||||||
SASJS_LOGS_SEPARATOR_163ee17b6ff24f028928972d80a26784
|
${SASJS_LOGS_SEPARATOR}
|
||||||
log with indentation
|
log with indentation
|
||||||
SASJS_LOGS_SEPARATOR_163ee17b6ff24f028928972d80a26784
|
${SASJS_LOGS_SEPARATOR}
|
||||||
${log}
|
${log}
|
||||||
SASJS_LOGS_SEPARATOR_163ee17b6ff24f028928972d80a26784
|
${SASJS_LOGS_SEPARATOR}
|
||||||
some SAS code containing SASJS_LOGS_SEPARATOR_163ee17b6ff24f028928972d80a26784
|
some SAS code containing ${SASJS_LOGS_SEPARATOR}
|
||||||
root log end`
|
root log end`
|
||||||
|
|
||||||
const response: AxiosResponse<any> = {
|
const response: AxiosResponse<any> = {
|
||||||
data: `${webout}
|
data: `${webout}
|
||||||
SASJS_LOGS_SEPARATOR_163ee17b6ff24f028928972d80a26784
|
${SASJS_LOGS_SEPARATOR}
|
||||||
${logWithNestedLog}
|
${logWithNestedLog}
|
||||||
SASJS_LOGS_SEPARATOR_163ee17b6ff24f028928972d80a26784
|
${SASJS_LOGS_SEPARATOR}
|
||||||
${printOutput}`,
|
${printOutput}`,
|
||||||
status,
|
status,
|
||||||
statusText: 'ok',
|
statusText: 'ok',
|
||||||
|
|||||||
Reference in New Issue
Block a user