Skip to content

Commit

Permalink
test(abap-api-tools): unit tests refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
bsrdjan committed Feb 21, 2023
1 parent 469b147 commit 707a6ce
Show file tree
Hide file tree
Showing 7 changed files with 429 additions and 40 deletions.
2 changes: 1 addition & 1 deletion abap-api-tools/tests/cliapi.errors.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ describe("Integration API errors checks", () => {
}
});

test.skip("get : stfc_structure, invalid shlp key", async () => {
test("get : stfc_structure, invalid shlp key", async () => {
expect.assertions(1);
try {
await api.get(
Expand Down
4 changes: 2 additions & 2 deletions abap-api-tools/tests/cliapi.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
const AbapCliApi = require("../dist/abap").AbapCliApi;

const loadFromFile = require("./utils").loadFromFile;
//const saveToFile = require("./utils").saveToFile;
const saveToFile = require("./utils").saveToFile;

("use strict");

Expand Down Expand Up @@ -44,7 +44,7 @@ describe("Integration API", () => {
test("call: array rfm, destination", async () => {
expect.assertions(2);

const expectedFn = "call_stfc_connection_stfc_structure.yaml";
const expectedFn = "call_stfc_connection_stfc_structure1.yaml";
const result = await api.call("MME", ["stfc_connection", "stfc_structure"]);
//saveToFile(expectedFn, result);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ annotations:
PARAMCLASS: I
TABNAME: SYST
FIELDNAME: LISEL
PARAMTEXT: ''
PARAMTEXT: ""
functionName: STFC_CONNECTION
paramName: REQUTEXT
required: true
Expand All @@ -17,7 +17,7 @@ annotations:
PARAMCLASS: E
TABNAME: SYST
FIELDNAME: LISEL
PARAMTEXT: ''
PARAMTEXT: ""
functionName: STFC_CONNECTION
paramName: ECHOTEXT
required: true
Expand All @@ -26,7 +26,7 @@ annotations:
PARAMCLASS: E
TABNAME: SYST
FIELDNAME: LISEL
PARAMTEXT: ''
PARAMTEXT: ""
functionName: STFC_CONNECTION
paramName: RESPTEXT
required: true
Expand Down Expand Up @@ -76,7 +76,7 @@ annotations:
ROLLNAME: SYST_LISEL
OUTPUTLEN: 255
text:
FIELDTEXT: 'ABAP System Field: Content of Selected List Line'
FIELDTEXT: "ABAP System Field: Content of Selected List Line"
REPTEXT: Line Content
SCRTEXT_S: Line
SCRTEXT_M: Line Content
Expand Down Expand Up @@ -343,7 +343,7 @@ frontend:
RFCINT1 : 0, // INT1 (3) INT1 field
RFCCHAR4 : "", // CHAR (4) Character field of length 4
RFCINT4 : 0, // INT4 (10) INT4 field
RFCHEX3 : bytes(), // RAW (3) HEX field of length 3
RFCHEX3 : Buffer.alloc(3), // RAW (3) HEX field of length 3
RFCCHAR2 : "", // CHAR (2) Character field of length 2
RFCTIME : "", // TIMS (6) Validity Period
RFCDATE : "", // DATS (8) Date field
Expand All @@ -367,7 +367,7 @@ frontend:
RFCINT1 : 0, // INT1 (3) INT1 field
RFCCHAR4 : "", // CHAR (4) Character field of length 4
RFCINT4 : 0, // INT4 (10) INT4 field
RFCHEX3 : bytes(), // RAW (3) HEX field of length 3
RFCHEX3 : Buffer.alloc(3), // RAW (3) HEX field of length 3
RFCCHAR2 : "", // CHAR (2) Character field of length 2
RFCTIME : "", // TIMS (6) Validity Period
RFCDATE : "", // DATS (8) Date field
Expand All @@ -390,7 +390,7 @@ frontend:
RFCINT1 : 0, // INT1 (3) INT1 field
RFCCHAR4 : "", // CHAR (4) Character field of length 4
RFCINT4 : 0, // INT4 (10) INT4 field
RFCHEX3 : bytes(), // RAW (3) HEX field of length 3
RFCHEX3 : Buffer.alloc(3), // RAW (3) HEX field of length 3
RFCCHAR2 : "", // CHAR (2) Character field of length 2
RFCTIME : "", // TIMS (6) Validity Period
RFCDATE : "", // DATS (8) Date field
Expand Down
Loading

0 comments on commit 707a6ce

Please sign in to comment.