Skip to content

Commit

Permalink
Update DownloadJobs.system.test.ts
Browse files Browse the repository at this point in the history
Signed-off-by: Amber Torrise <[email protected]>
  • Loading branch information
ATorrise authored Jan 30, 2024
1 parent 0226009 commit 5617fe2
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,15 @@ describe("Download Jobs - System tests", () => {
expect(IO.readFileSync(expectedFile).toString()).toContain("EXEC PGM=IEFBR14");
});

it("should be able to download a single DD from job output", async () => {
await DownloadJobs.downloadSpoolContent(REAL_SESSION,
jesJCLJobFile
);
const expectedFile = DownloadJobs.getSpoolDownloadFile(jesJCLJobFile, false);
expect(IO.existsSync(expectedFile)).toEqual(true);
expect(IO.readFileSync(expectedFile).toString()).toContain("EXEC PGM=IEFBR14");
});

it("should be able to download all DDs from job output", async () => {
await DownloadJobs.downloadAllSpoolContentCommon(REAL_SESSION, {
outDir: outputDirectory,
Expand Down Expand Up @@ -444,4 +453,4 @@ describe("Download Jobs - System tests - Encoded", () => {
}
}, LONG_TIMEOUT);
});
});
});

0 comments on commit 5617fe2

Please sign in to comment.