diff --git a/sasjs-tests/.env b/sasjs-tests/.env index 7d910f1..fba2a35 100644 --- a/sasjs-tests/.env +++ b/sasjs-tests/.env @@ -1 +1,3 @@ -SKIP_PREFLIGHT_CHECK=true \ No newline at end of file +SKIP_PREFLIGHT_CHECK=true +# Removes index.html inline scripts +INLINE_RUNTIME_CHUNK=false diff --git a/sasjs-tests/sasjs/sasjsconfig.json b/sasjs-tests/sasjs/sasjsconfig.json index fe3a16c..52c70f7 100644 --- a/sasjs-tests/sasjs/sasjsconfig.json +++ b/sasjs-tests/sasjs/sasjsconfig.json @@ -24,6 +24,26 @@ "streamServiceName": "adapter-tests", "assetPaths": [] } + }, + { + "name": "viya", + "serverUrl": "", + "serverType": "SASVIYA", + "httpsAgentOptions": { + "allowInsecureRequests": false + }, + "appLoc": "/Public/app/adapter-tests", + "deployConfig": { + "deployServicePack": true, + "deployScripts": [] + }, + "streamConfig": { + "streamWeb": true, + "streamWebFolder": "webv", + "webSourcePath": "build", + "streamServiceName": "adapter-tests", + "assetPaths": [] + } } ] } diff --git a/sasjs-tests/src/testSuites/Basic.ts b/sasjs-tests/src/testSuites/Basic.ts index a318004..3a83f1a 100644 --- a/sasjs-tests/src/testSuites/Basic.ts +++ b/sasjs-tests/src/testSuites/Basic.ts @@ -87,6 +87,20 @@ export const basicTests = ( return response.table1[0][0] === stringData.table1[0].col1 } }, + { + title: 'Web request', + description: 'Should run the request with old web approach', + test: async () => { + const config: Partial = { + useComputeApi: false + } + + return await adapter.request('common/sendArr', stringData, config) + }, + assertion: (response: any) => { + return response.table1[0][0] === stringData.table1[0].col1 + } + }, { title: 'Request with debug on', description: @@ -159,20 +173,6 @@ export const basicTests = ( sasjsConfig.debug === false ) } - }, - { - title: 'Web request', - description: 'Should run the request with old web approach', - test: async () => { - const config: Partial = { - useComputeApi: false - } - - return await adapter.request('common/sendArr', stringData, config) - }, - assertion: (response: any) => { - return response.table1[0][0] === stringData.table1[0].col1 - } } ] })