1
0
mirror of https://github.com/sasjs/adapter.git synced 2026-04-18 19:53:14 +00:00

fix(sasjs-tests): used appLoc from config

This commit is contained in:
Yury Shkoda
2022-06-29 08:37:59 +03:00
parent 283800dfa6
commit 56d84e1940
3 changed files with 7 additions and 6 deletions

View File

@@ -45,14 +45,14 @@ const getLargeObjectData = () => {
return data
}
export const sendArrTests = (adapter: SASjs): TestSuite => ({
export const sendArrTests = (adapter: SASjs, appLoc: string): TestSuite => ({
name: 'sendArr',
tests: [
{
title: 'Absolute paths',
description: 'Should work with absolute paths to SAS jobs',
test: () => {
return adapter.request('/Public/app/common/sendArr', stringData)
return adapter.request(`${appLoc}/common/sendArr`, stringData)
},
assertion: (res: any) => {
return res.table1[0][0] === stringData.table1[0].col1