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

chore(sasjs-tests): debugging

This commit is contained in:
Yury Shkoda
2023-05-29 17:33:01 +03:00
parent f6ee1111c5
commit 828aef1873

View File

@@ -67,26 +67,26 @@ export const basicTests = (
assertion: (response: any) => assertion: (response: any) =>
response && response.isLoggedIn && response.userName === userName response && response.isLoggedIn && response.userName === userName
}, },
{ // {
title: 'Trigger login callback', // title: 'Trigger login callback',
description: // description:
'Should trigger required login callback and after successful login, it should finish the request', // 'Should trigger required login callback and after successful login, it should finish the request',
test: async () => { // test: async () => {
await adapter.logOut() // await adapter.logOut()
return await adapter.request( // return await adapter.request(
'common/sendArr', // 'common/sendArr',
stringData, // stringData,
undefined, // undefined,
async () => { // async () => {
await adapter.logIn(userName, password) // await adapter.logIn(userName, password)
} // }
) // )
}, // },
assertion: (response: any) => { // assertion: (response: any) => {
return response.table1[0][0] === stringData.table1[0].col1 // return response.table1[0][0] === stringData.table1[0].col1
} // }
}, // },
{ {
title: 'Request with debug on', title: 'Request with debug on',
description: description: