Skip to content

Commit

Permalink
CLI part 2
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew W. Harn <[email protected]>
  • Loading branch information
awharn committed Feb 14, 2025
1 parent b44a12a commit c4800e1
Show file tree
Hide file tree
Showing 56 changed files with 152 additions and 262 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ describe("Create PS data set handler", () => {
})
},
progress: {
startBar: jest.fn((parms) => {
startBar: jest.fn((_parms) => {
// do nothing
}),
endBar: jest.fn(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ describe("Create USS Directory", () => {
})
},
progress: {
startBar: jest.fn((parms) => {
startBar: jest.fn((_parms) => {
// do nothing
}),
endBar: jest.fn(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ describe("Create USS file", () => {
})
},
progress: {
startBar: jest.fn((parms) => {
startBar: jest.fn((_parms) => {
// do nothing
}),
endBar: jest.fn(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ describe("Create VSAM data set handler", () => {
})
},
progress: {
startBar: jest.fn((parms) => {
startBar: jest.fn((_parms) => {
// do nothing
}),
endBar: jest.fn(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ describe("Create z/OS file system handler", () => {
})
},
progress: {
startBar: jest.fn((parms) => {
startBar: jest.fn((_parms) => {
// do nothing
}),
endBar: jest.fn(() => {
Expand Down Expand Up @@ -93,9 +93,6 @@ describe("Create z/OS file system handler", () => {

// Vars populated by the mocked function
let error: any;
let apiMessage = "";
let jsonObj;
let logMessage = "";
let fakeSession = null;

// Mock the zfs function
Expand All @@ -116,16 +113,16 @@ describe("Create z/OS file system handler", () => {
},
response: {
data: {
setMessage: jest.fn((setMsgArgs) => {
apiMessage = setMsgArgs;
setMessage: jest.fn((_setMsgArgs) => {
// Do nothing
}),
setObj: jest.fn((setObjArgs) => {
jsonObj = setObjArgs;
setObj: jest.fn((_setObjArgs) => {
// Do nothing
}),
},
console: {
log: jest.fn((logArgs) => {
logMessage += "\n" + logArgs;
log: jest.fn((_logArgs) => {
// Do nothing
}),
},
progress: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ describe("Download AllMembers handler", () => {
})
},
progress: {
startBar: jest.fn((parms) => {
startBar: jest.fn((_parms) => {
// do nothing
}),
endBar: jest.fn(() => {
Expand Down Expand Up @@ -135,7 +135,7 @@ describe("Download AllMembers handler", () => {
})
},
progress: {
startBar: jest.fn((parms) => {
startBar: jest.fn((_parms) => {
// do nothing
}),
endBar: jest.fn(() => {
Expand Down Expand Up @@ -211,7 +211,7 @@ describe("Download AllMembers handler", () => {
})
},
progress: {
startBar: jest.fn((parms) => {
startBar: jest.fn((_parms) => {
// do nothing
}),
endBar: jest.fn(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ describe("Download AllMembersMatching handler", () => {
apiResponse: fakeListResponse
};
});
Download.allMembers = jest.fn(async (session) => {
Download.allMembers = jest.fn(async (_session) => {
return {
success: true,
commandResponse: "downloaded"
Expand Down Expand Up @@ -117,7 +117,7 @@ describe("Download AllMembersMatching handler", () => {
apiResponse: fakeListResponse
};
});
Download.allMembers = jest.fn(async (session) => {
Download.allMembers = jest.fn(async (_session) => {
return {
success: true,
commandResponse: "downloaded"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ describe("Download data set handler", () => {
})
},
progress: {
startBar: jest.fn((parms) => {
startBar: jest.fn((_parms) => {
// do nothing
}),
endBar: jest.fn(() => {
Expand Down Expand Up @@ -135,7 +135,7 @@ describe("Download data set handler", () => {
})
},
progress: {
startBar: jest.fn((parms) => {
startBar: jest.fn((_parms) => {
// do nothing
}),
endBar: jest.fn(() => {
Expand Down Expand Up @@ -211,7 +211,7 @@ describe("Download data set handler", () => {
})
},
progress: {
startBar: jest.fn((parms) => {
startBar: jest.fn((_parms) => {
// do nothing
}),
endBar: jest.fn(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ describe("Download DataSetMatching handler", () => {
apiResponse: fakeListResponse
};
});
Download.allDataSets = jest.fn(async (session) => {
Download.allDataSets = jest.fn(async (_session) => {
return {
success: true,
commandResponse: "downloaded"
Expand Down Expand Up @@ -94,7 +94,7 @@ describe("Download DataSetMatching handler", () => {
apiResponse: fakeListResponse
};
});
Download.allDataSets = jest.fn(async (session) => {
Download.allDataSets = jest.fn(async (_session) => {
return {
success: true,
commandResponse: "downloaded"
Expand Down Expand Up @@ -154,7 +154,7 @@ describe("Download DataSetMatching handler", () => {
apiResponse: fakeListResponse
};
});
Download.allDataSets = jest.fn(async (session) => {
Download.allDataSets = jest.fn(async (_session) => {
return {
success: true,
commandResponse: "downloaded"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ describe("Download uss file handler", () => {
})
},
progress: {
startBar: jest.fn((parms) => {
startBar: jest.fn((_parms) => {
// do nothing
}),
endBar: jest.fn(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ describe("Download uss dir handler", () => {
})
},
progress: {
startBar: jest.fn((parms) => {
startBar: jest.fn((_parms) => {
// do nothing
}),
endBar: jest.fn(() => {
Expand Down Expand Up @@ -153,7 +153,7 @@ describe("Download uss dir handler", () => {
})
},
progress: {
startBar: jest.fn((parms) => {
startBar: jest.fn((_parms) => {
// do nothing
}),
endBar: jest.fn(() => {
Expand Down Expand Up @@ -223,7 +223,7 @@ describe("Download uss dir handler", () => {
})
},
progress: {
startBar: jest.fn((parms) => {
startBar: jest.fn((_parms) => {
// do nothing
}),
endBar: jest.fn(() => {
Expand Down Expand Up @@ -293,7 +293,7 @@ describe("Download uss dir handler", () => {
})
},
progress: {
startBar: jest.fn((parms) => {
startBar: jest.fn((_parms) => {
// do nothing
}),
endBar: jest.fn(() => {
Expand Down Expand Up @@ -363,7 +363,7 @@ describe("Download uss dir handler", () => {
})
},
progress: {
startBar: jest.fn((parms) => {
startBar: jest.fn((_parms) => {
// do nothing
}),
endBar: jest.fn(() => {
Expand Down Expand Up @@ -433,7 +433,7 @@ describe("Download uss dir handler", () => {
})
},
progress: {
startBar: jest.fn((parms) => {
startBar: jest.fn((_parms) => {
// do nothing
}),
endBar: jest.fn(() => {
Expand Down Expand Up @@ -503,7 +503,7 @@ describe("Download uss dir handler", () => {
})
},
progress: {
startBar: jest.fn((parms) => {
startBar: jest.fn((_parms) => {
// do nothing
}),
endBar: jest.fn(() => {
Expand Down Expand Up @@ -573,7 +573,7 @@ describe("Download uss dir handler", () => {
})
},
progress: {
startBar: jest.fn((parms) => {
startBar: jest.fn((_parms) => {
// do nothing
}),
endBar: jest.fn(() => {
Expand Down Expand Up @@ -643,7 +643,7 @@ describe("Download uss dir handler", () => {
})
},
progress: {
startBar: jest.fn((parms) => {
startBar: jest.fn((_parms) => {
// do nothing
}),
endBar: jest.fn(() => {
Expand Down Expand Up @@ -713,7 +713,7 @@ describe("Download uss dir handler", () => {
})
},
progress: {
startBar: jest.fn((parms) => {
startBar: jest.fn((_parms) => {
// do nothing
}),
endBar: jest.fn(() => {
Expand Down Expand Up @@ -783,7 +783,7 @@ describe("Download uss dir handler", () => {
})
},
progress: {
startBar: jest.fn((parms) => {
startBar: jest.fn((_parms) => {
// do nothing
}),
endBar: jest.fn(() => {
Expand Down Expand Up @@ -853,7 +853,7 @@ describe("Download uss dir handler", () => {
})
},
progress: {
startBar: jest.fn((parms) => {
startBar: jest.fn((_parms) => {
// do nothing
}),
endBar: jest.fn(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ describe("Invoke AMS files handler", () => {
})
},
progress: {
startBar: jest.fn((parms) => {
startBar: jest.fn((_parms) => {
// do nothing
}),
endBar: jest.fn(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ describe("Invoke AMS statements handler", () => {
})
},
progress: {
startBar: jest.fn((parms) => {
startBar: jest.fn((_parms) => {
// do nothing
}),
endBar: jest.fn(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ describe("List AllMembers handler", () => {
})
},
progress: {
startBar: jest.fn((parms) => {
startBar: jest.fn((_parms) => {
// do nothing
}),
endBar: jest.fn(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ describe("List Dataset handler", () => {
})
},
progress: {
startBar: jest.fn((parms) => {
startBar: jest.fn((_parms) => {
// do nothing
}),
endBar: jest.fn(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ describe("fs handler", () => {
const handler = new handlerReq.default();

// Vars populated by the mocked function
let error;
let apiMessage = "";
let jsonObj;
let logMessage = "";
Expand Down Expand Up @@ -62,7 +61,7 @@ describe("fs handler", () => {
})
},
progress: {
startBar: jest.fn((parms) => {
startBar: jest.fn((_parms) => {
// do nothing
}),
endBar: jest.fn(() => {
Expand All @@ -72,7 +71,7 @@ describe("fs handler", () => {
}
} as any);
} catch (e) {
error = e;
// Do nothing
}

// expect(error).toBeUndefined();
Expand All @@ -90,7 +89,6 @@ describe("fs handler", () => {
const path = "testing";

// Vars populated by the mocked function
let error;
let apiMessage = "";
let jsonObj;
let logMessage = "";
Expand Down Expand Up @@ -132,7 +130,7 @@ describe("fs handler", () => {
})
},
progress: {
startBar: jest.fn((parms) => {
startBar: jest.fn((_parms) => {
// do nothing
}),
endBar: jest.fn(() => {
Expand All @@ -142,7 +140,7 @@ describe("fs handler", () => {
}
} as any);
} catch (e) {
error = e;
// Do nothing
}

// expect(error).toBeUndefined();
Expand Down
Loading

0 comments on commit c4800e1

Please sign in to comment.