From b7cfbceaea348f0db3d7bfc71f8cebcffbfa8a6b Mon Sep 17 00:00:00 2001 From: "Andrew W. Harn" Date: Wed, 20 Nov 2024 15:24:53 -0500 Subject: [PATCH] Fix incorrect CLI unit test Signed-off-by: Andrew W. Harn --- .../search/ds/Datasets.handler.unit.test.ts | 50 +++++++++---------- .../Datasets.handler.unit.test.ts.snap | 48 +++++++++--------- 2 files changed, 49 insertions(+), 49 deletions(-) diff --git a/packages/cli/__tests__/zosfiles/__unit__/search/ds/Datasets.handler.unit.test.ts b/packages/cli/__tests__/zosfiles/__unit__/search/ds/Datasets.handler.unit.test.ts index f9026ae836..d0444e9434 100644 --- a/packages/cli/__tests__/zosfiles/__unit__/search/ds/Datasets.handler.unit.test.ts +++ b/packages/cli/__tests__/zosfiles/__unit__/search/ds/Datasets.handler.unit.test.ts @@ -29,7 +29,7 @@ describe("Search Datasets handler", () => { let logMessage = ""; let fakeSession = null; - // Mock the submit JCL function + // Mock the search datasets function Search.dataSets = jest.fn(async (session) => { fakeSession = session; return { @@ -37,8 +37,8 @@ describe("Search Datasets handler", () => { commandResponse: "Found \"test\" in 2 data sets and PDS members", apiResponse: [ { - dsname: "TEST1.DS", - memname: "TESTMEM", + dsn: "TEST1.DS", + member: "TESTMEM", matchList: [ { line: 1, @@ -48,8 +48,8 @@ describe("Search Datasets handler", () => { ] }, { - dsname: "TEST2.DS", - memname: undefined, + dsn: "TEST2.DS", + member: undefined, matchList: [ { line: 1, @@ -139,8 +139,8 @@ describe("Search Datasets handler", () => { commandResponse: "Found \"test\" in 2 data sets and PDS members", apiResponse: [ { - dsname: "TEST1.DS", - memname: "TESTMEM", + dsn: "TEST1.DS", + member: "TESTMEM", matchList: [ { line: 1, @@ -150,8 +150,8 @@ describe("Search Datasets handler", () => { ] }, { - dsname: "TEST2.DS", - memname: undefined, + dsn: "TEST2.DS", + member: undefined, matchList: [ { line: 1, @@ -242,8 +242,8 @@ describe("Search Datasets handler", () => { commandResponse: "Found \"test\" in 2 data sets and PDS members", apiResponse: [ { - dsname: "TEST1.DS", - memname: "TESTMEM", + dsn: "TEST1.DS", + member: "TESTMEM", matchList: [ { line: 1, @@ -253,8 +253,8 @@ describe("Search Datasets handler", () => { ] }, { - dsname: "TEST2.DS", - memname: undefined, + dsn: "TEST2.DS", + member: undefined, matchList: [ { line: 1, @@ -345,8 +345,8 @@ describe("Search Datasets handler", () => { commandResponse: "Found \"test\" in 2 data sets and PDS members", apiResponse: [ { - dsname: "TEST1.DS", - memname: "TESTMEM", + dsn: "TEST1.DS", + member: "TESTMEM", matchList: [ { line: 1, @@ -356,8 +356,8 @@ describe("Search Datasets handler", () => { ] }, { - dsname: "TEST2.DS", - memname: undefined, + dsn: "TEST2.DS", + member: undefined, matchList: [ { line: 1, @@ -448,8 +448,8 @@ describe("Search Datasets handler", () => { commandResponse: "Found \"test\" in 2 data sets and PDS members", apiResponse: [ { - dsname: "TEST1.DS", - memname: "TESTMEM", + dsn: "TEST1.DS", + member: "TESTMEM", matchList: [ { line: 1, @@ -459,8 +459,8 @@ describe("Search Datasets handler", () => { ] }, { - dsname: "TEST2.DS", - memname: undefined, + dsn: "TEST2.DS", + member: undefined, matchList: [ { line: 1, @@ -551,8 +551,8 @@ describe("Search Datasets handler", () => { commandResponse: "Found \"test\" in 2 data sets and PDS members", apiResponse: [ { - dsname: "TEST1.DS", - memname: "TESTMEM", + dsn: "TEST1.DS", + member: "TESTMEM", matchList: [ { line: 1, @@ -562,8 +562,8 @@ describe("Search Datasets handler", () => { ] }, { - dsname: "TEST2.DS", - memname: undefined, + dsn: "TEST2.DS", + member: undefined, matchList: [ { line: 1, diff --git a/packages/cli/__tests__/zosfiles/__unit__/search/ds/__snapshots__/Datasets.handler.unit.test.ts.snap b/packages/cli/__tests__/zosfiles/__unit__/search/ds/__snapshots__/Datasets.handler.unit.test.ts.snap index 16cfd76fb2..496cfc0b0d 100644 --- a/packages/cli/__tests__/zosfiles/__unit__/search/ds/__snapshots__/Datasets.handler.unit.test.ts.snap +++ b/packages/cli/__tests__/zosfiles/__unit__/search/ds/__snapshots__/Datasets.handler.unit.test.ts.snap @@ -4,7 +4,7 @@ exports[`Search Datasets handler process method should search a data set if requ Object { "apiResponse": Array [ Object { - "dsname": "TEST1.DS", + "dsn": "TEST1.DS", "matchList": Array [ Object { "column": 1, @@ -12,10 +12,10 @@ Object { "line": 1, }, ], - "memname": "TESTMEM", + "member": "TESTMEM", }, Object { - "dsname": "TEST2.DS", + "dsn": "TEST2.DS", "matchList": Array [ Object { "column": 1, @@ -23,7 +23,7 @@ Object { "line": 1, }, ], - "memname": undefined, + "member": undefined, }, ], "commandResponse": "Found \\"test\\" in 2 data sets and PDS members", @@ -42,7 +42,7 @@ exports[`Search Datasets handler process method should search a data set if requ Object { "apiResponse": Array [ Object { - "dsname": "TEST1.DS", + "dsn": "TEST1.DS", "matchList": Array [ Object { "column": 1, @@ -50,10 +50,10 @@ Object { "line": 1, }, ], - "memname": "TESTMEM", + "member": "TESTMEM", }, Object { - "dsname": "TEST2.DS", + "dsn": "TEST2.DS", "matchList": Array [ Object { "column": 1, @@ -61,7 +61,7 @@ Object { "line": 1, }, ], - "memname": undefined, + "member": undefined, }, ], "commandResponse": "Found \\"test\\" in 2 data sets and PDS members", @@ -80,7 +80,7 @@ exports[`Search Datasets handler process method should search a data set if requ Object { "apiResponse": Array [ Object { - "dsname": "TEST1.DS", + "dsn": "TEST1.DS", "matchList": Array [ Object { "column": 1, @@ -88,10 +88,10 @@ Object { "line": 1, }, ], - "memname": "TESTMEM", + "member": "TESTMEM", }, Object { - "dsname": "TEST2.DS", + "dsn": "TEST2.DS", "matchList": Array [ Object { "column": 1, @@ -99,7 +99,7 @@ Object { "line": 1, }, ], - "memname": undefined, + "member": undefined, }, ], "commandResponse": "Found \\"test\\" in 2 data sets and PDS members", @@ -118,7 +118,7 @@ exports[`Search Datasets handler process method should search a data set if requ Object { "apiResponse": Array [ Object { - "dsname": "TEST1.DS", + "dsn": "TEST1.DS", "matchList": Array [ Object { "column": 1, @@ -126,10 +126,10 @@ Object { "line": 1, }, ], - "memname": "TESTMEM", + "member": "TESTMEM", }, Object { - "dsname": "TEST2.DS", + "dsn": "TEST2.DS", "matchList": Array [ Object { "column": 1, @@ -137,7 +137,7 @@ Object { "line": 1, }, ], - "memname": undefined, + "member": undefined, }, ], "commandResponse": "Found \\"test\\" in 2 data sets and PDS members", @@ -156,7 +156,7 @@ exports[`Search Datasets handler process method should search a data set if requ Object { "apiResponse": Array [ Object { - "dsname": "TEST1.DS", + "dsn": "TEST1.DS", "matchList": Array [ Object { "column": 1, @@ -164,10 +164,10 @@ Object { "line": 1, }, ], - "memname": "TESTMEM", + "member": "TESTMEM", }, Object { - "dsname": "TEST2.DS", + "dsn": "TEST2.DS", "matchList": Array [ Object { "column": 1, @@ -175,7 +175,7 @@ Object { "line": 1, }, ], - "memname": undefined, + "member": undefined, }, ], "commandResponse": "Found \\"test\\" in 2 data sets and PDS members", @@ -194,7 +194,7 @@ exports[`Search Datasets handler process method should search a data set if requ Object { "apiResponse": Array [ Object { - "dsname": "TEST1.DS", + "dsn": "TEST1.DS", "matchList": Array [ Object { "column": 1, @@ -202,10 +202,10 @@ Object { "line": 1, }, ], - "memname": "TESTMEM", + "member": "TESTMEM", }, Object { - "dsname": "TEST2.DS", + "dsn": "TEST2.DS", "matchList": Array [ Object { "column": 1, @@ -213,7 +213,7 @@ Object { "line": 1, }, ], - "memname": undefined, + "member": undefined, }, ], "commandResponse": "Found \\"test\\" in 2 data sets and PDS members",