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:
24
sasjs-tests/src/testSuites/Compute.ts
Normal file
24
sasjs-tests/src/testSuites/Compute.ts
Normal 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
|
||||
);
|
||||
}
|
||||
}
|
||||
]
|
||||
});
|
||||
Reference in New Issue
Block a user