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