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

chore: JES test disable on SAS9

This commit is contained in:
2021-07-22 13:48:11 +02:00
parent c87776ca1b
commit 317c8c81a0

View File

@@ -151,6 +151,9 @@ export const basicTests = (
description: description:
'Should complete successful request with extra attributes present in response', 'Should complete successful request with extra attributes present in response',
test: async () => { test: async () => {
if (adapter.getSasjsConfig().serverType !== 'SASVIYA')
return Promise.resolve('skip')
const config = { const config = {
useComputeApi: false useComputeApi: false
} }
@@ -165,9 +168,10 @@ export const basicTests = (
) )
}, },
assertion: (response: any) => { assertion: (response: any) => {
if (response === 'skip') return true
const responseKeys: any = Object.keys(response) const responseKeys: any = Object.keys(response)
return responseKeys.includes('file') && responseKeys.includes('data') return responseKeys.includes('file') && responseKeys.includes('data')
} }
}
] ]
}) })