Skip to content

Commit 8fe29b1

Browse files
committed
test
Signed-off-by: Paul Cooper <[email protected]>
1 parent b460f24 commit 8fe29b1

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

__tests__/api/BundlePush/BundlePusher.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1242,7 +1242,7 @@ describe("BundlePusher01", () => {
12421242
return { response: {
12431243
records: {
12441244
cicsregion: {
1245-
applid: "ABCDEFG", jobid: "JOB12345", jobname: "MYCICS"
1245+
applid: "ABCDEFG", jobid: "JOB12345", jobname: "MYCICS", sysname: "ABCD"
12461246
}
12471247
}
12481248
}
@@ -1256,7 +1256,7 @@ describe("BundlePusher01", () => {
12561256
await runPushTest("__tests__/__resources__/ExampleBundle01", false, "PUSH operation completed");
12571257

12581258
expect(consoleText).toContain("Regions in scope '12345678' of CICSplex '12345678':");
1259-
expect(consoleText).toContain("Applid: ABCDEFG jobname: MYCICS jobid: JOB12345");
1259+
expect(consoleText).toContain("Applid: ABCDEFG jobname: MYCICS jobid: JOB12345 sysname: ABCD");
12601260
expect(consoleText).not.toContain("NODEJSAPP");
12611261
expect(zosMFSpy).toHaveBeenCalledTimes(1);
12621262
expect(sshSpy).toHaveBeenCalledTimes(1);

src/api/BundlePush/BundlePusher.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -684,6 +684,11 @@ export class BundlePusher {
684684

685685
private async generateNodejsSpecificDiagnostics(cicsSession: AbstractSession): Promise<string> {
686686
let msgBuffer = "";
687+
688+
// if (cicsSession === undefined) {
689+
// return msgBuffer;
690+
// }
691+
687692
try {
688693
// Attempt to gather additional Node.js specific information from CICS
689694
this.updateStatus("Gathering Node.js diagnostics");

0 commit comments

Comments
 (0)