1
0
mirror of https://github.com/sasjs/adapter.git synced 2026-01-16 16:40:06 +00:00

fix: extraResponseAttributes for WebJobExecutor + sasjs-tests

This commit is contained in:
Saad Jutt
2021-09-01 03:50:55 +05:00
parent 2a6e29b5b8
commit 867422f4cc
5 changed files with 68 additions and 40 deletions

View File

@@ -49,7 +49,7 @@ export const basicTests = (
const newAdapterIns = new SASjs(adapter.getSasjsConfig())
return newAdapterIns.checkSession()
return await newAdapterIns.checkSession()
},
assertion: (response: any) =>
response?.isLoggedIn && response?.userName === userName
@@ -61,7 +61,7 @@ export const basicTests = (
test: async () => {
await adapter.logOut()
await adapter.logIn('invalid', 'invalid')
return adapter.logIn(userName, password)
return await adapter.logIn(userName, password)
},
assertion: (response: any) =>
response && response.isLoggedIn && response.userName === userName
@@ -164,7 +164,7 @@ export const basicTests = (
description:
'Should complete successful request with extra attributes present in response',
test: async () => {
const config = {
const config: Partial<SASjsConfig> = {
useComputeApi: false
}