Skip to content

Commit

Permalink
Signed-off-by: COBOL-Erik <[email protected]>
Browse files Browse the repository at this point in the history
  • Loading branch information
S38453 committed Dec 20, 2024
1 parent adf44d6 commit 5ae8fbc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/zosjobs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ All notable changes to the Zowe z/OS jobs SDK package will be documented in this

## Recent Changes

- BugFix: Check if encoding is set and not empty now works for numeric-only value in encoding. [#2392] (https://github.com/zowe/zowe-cli/pull/2392).
- BugFix: Check if encoding is set and not empty now works for numeric-only value in encoding (GetJobs.ts). [#2392] (https://github.com/zowe/zowe-cli/pull/2392).

## `8.7.1`

Expand Down
7 changes: 7 additions & 0 deletions packages/zosjobs/__tests__/__unit__/GetJobs.unit.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -521,6 +521,13 @@ describe("GetJobs tests", () => {
expect(content).toEqual(GetJobsData.SAMPLE_JES_MSG_LG);
});

it("should return spool content from getSpoolContentById with encoding as a number if z/OSMF response is mocked", async () => {
(ZosmfRestClient.getExpectString as any) = mockGetJobsStringData(GetJobsData.SAMPLE_JES_MSG_LG);
const content = await GetJobs.getSpoolContentById(pretendSession, "MYJOB1", "JOB0123", 1, 278 as any);
expect((ZosmfRestClient.getExpectString as any).mock.calls[0][1]).toContain("fileEncoding=278");
expect(content).toEqual(GetJobsData.SAMPLE_JES_MSG_LG);
});

it("should error if spoolID is omitted from getSpoolContentById", async () => {
let err: Error;
try {
Expand Down

0 comments on commit 5ae8fbc

Please sign in to comment.