1
0
mirror of https://github.com/sasjs/adapter.git synced 2026-01-03 10:40:06 +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) =>
response && response.isLoggedIn && response.userName === userName
},
{
title: 'Trigger login callback',
description:
'Should trigger required login callback and after successful login, it should finish the request',
test: async () => {
await adapter.logOut()
// {
// title: 'Trigger login callback',
// description:
// 'Should trigger required login callback and after successful login, it should finish the request',
// test: async () => {
// await adapter.logOut()
return await adapter.request(
'common/sendArr',
stringData,
undefined,
async () => {
await adapter.logIn(userName, password)
}
)
},
assertion: (response: any) => {
return response.table1[0][0] === stringData.table1[0].col1
}
},
// return await adapter.request(
// 'common/sendArr',
// stringData,
// undefined,
// async () => {
// await adapter.logIn(userName, password)
// }
// )
// },
// assertion: (response: any) => {
// return response.table1[0][0] === stringData.table1[0].col1
// }
// },
{
title: 'Request with debug on',
description: