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:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user