1
0
mirror of https://github.com/sasjs/adapter.git synced 2025-12-11 01:14:36 +00:00

chore(sasjs-tests): fix failing test, add test for absolute path

This commit is contained in:
Krishna Acondy
2020-09-18 08:33:46 +01:00
parent b90b5d5c03
commit 3a60e6422c
2 changed files with 11 additions and 1 deletions

View File

@@ -13,7 +13,7 @@ const defaultConfig: SASjsConfig = {
};
const customConfig = {
serverUrl: "url",
serverUrl: "http://url.com",
pathSAS9: "sas9",
pathSASViya: "viya",
appLoc: "/Public/seedapp",

View File

@@ -47,6 +47,16 @@ const getLargeObjectData = () => {
export const sendArrTests = (adapter: SASjs): 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);
},
assertion: (res: any) => {
return res.table1[0][0] === stringData.table1[0].col1;
}
},
{
title: "Single string value",
description: "Should send an array with a single string value",