mirror of
https://github.com/sasjs/adapter.git
synced 2026-01-10 13:50:05 +00:00
feat(*): recreate package with new name
This commit is contained in:
25
sasjs-tests/src/testSuites/SasjsRequests.ts
Normal file
25
sasjs-tests/src/testSuites/SasjsRequests.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
import SASjs from "sasjs";
|
||||
import { TestSuite } from "../types";
|
||||
|
||||
const data: any = { table1: [{ col1: "first col value" }] };
|
||||
|
||||
export const sasjsRequestTests = (adapter: SASjs): TestSuite => ({
|
||||
name: "SASjs Requests",
|
||||
tests: [
|
||||
{
|
||||
title: "WORK tables",
|
||||
description: "Should get WORK tables after request",
|
||||
test: async () => {
|
||||
return adapter.request("common/sendArr", data);
|
||||
},
|
||||
assertion: (res: any) => {
|
||||
const requests = adapter.getSasRequests();
|
||||
if (adapter.getSasjsConfig().debug) {
|
||||
return requests[0].SASWORK !== null;
|
||||
} else {
|
||||
return requests[0].SASWORK === null;
|
||||
}
|
||||
},
|
||||
},
|
||||
],
|
||||
});
|
||||
Reference in New Issue
Block a user