1
0
mirror of https://github.com/sasjs/adapter.git synced 2026-01-07 12:30:06 +00:00

chore(start-compute-job): add test

This commit is contained in:
Krishna Acondy
2020-10-06 09:21:58 +01:00
parent fd6905ea9f
commit a07c16fb52
2 changed files with 27 additions and 1 deletions

View File

@@ -0,0 +1,24 @@
import SASjs from "@sasjs/adapter";
import { TestSuite } from "@sasjs/test-framework";
export const computeTests = (adapter: SASjs): TestSuite => ({
name: "Compute",
tests: [
{
title: "Start Compute Job",
description: "Should start a compute job and return the session",
test: () => {
const data: any = { table1: [{ col1: "first col value" }] };
return adapter.startComputeJob("/Public/app/common/sendArr", data);
},
assertion: (res: any) => {
return (
!!res &&
!!res.applicationName &&
!!res.attributes &&
!!res.attributes.sessionInactiveTimeout
);
}
}
]
});