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

chore(sasjsTests): debugging

This commit is contained in:
Yury Shkoda
2023-05-29 18:11:25 +03:00
parent 1ead483921
commit 76bbb8acf2
3 changed files with 34 additions and 34 deletions

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: