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

test: extra attributes on JES

This commit is contained in:
2021-06-08 16:54:46 +02:00
parent 2fa3a353fa
commit d4357d939e
2 changed files with 75 additions and 9 deletions

View File

@@ -145,6 +145,22 @@ export const basicTests = (
sasjsConfig.debug === false
)
}
},
{
title: 'Request with extra attributes on JES approach',
description:
'Should complete successful request with extra attributes present in response',
test: async () => {
const config = {
useComputeApi: false
}
return await adapter.request('common/sendArr', stringData, config, undefined, undefined, ['output', 'file', 'data'])
},
assertion: (response: any) => {
const responseKeys: any = Object.keys(response)
return responseKeys.includes('file') && responseKeys.includes('output') && responseKeys.includes('data')
}
}
]
})