Skip to content

Commit c216764

Browse files
committed
more fun with merges
1 parent c9921b9 commit c216764

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

__tests__/api/BundleContent/BundleMocked.test.ts

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -24,22 +24,6 @@ describe("MockedFilesystemTests", () => {
2424
const parser = require("xml2json");
2525
});
2626

27-
it("should complain if exceptions are thrown during manifest parsing", () => {
28-
29-
jest.spyOn(JSON, "parse").mockImplementationOnce(() => { throw new Error("Wibble"); });
30-
31-
let err: Error;
32-
try {
33-
const bund = new Bundle("__tests__/__resources__/ExampleBundle01", true, true);
34-
}
35-
catch (error) {
36-
err = error;
37-
}
38-
39-
expect(err).toBeDefined();
40-
expect(err.message).toContain("Parsing error occurred reading a CICS manifest file: Wibble");
41-
});
42-
4327
it("should tolerate META-INF directory not existing", () => {
4428
// Mocks for the manifest - META-INF exists
4529
jest.spyOn(fs, "existsSync").mockImplementationOnce(() => ( false ));
@@ -565,4 +549,20 @@ describe("MockedFilesystemTests", () => {
565549

566550
expect(err).toBeUndefined();
567551
});
552+
553+
it("should complain if exceptions are thrown during manifest parsing", () => {
554+
555+
jest.spyOn(JSON, "parse").mockImplementationOnce(() => { throw new Error("Wibble"); });
556+
557+
let err: Error;
558+
try {
559+
const bund = new Bundle("__tests__/__resources__/ExampleBundle01", true, true);
560+
}
561+
catch (error) {
562+
err = error;
563+
}
564+
565+
expect(err).toBeDefined();
566+
expect(err.message).toContain("Parsing error occurred reading a CICS manifest file: Wibble");
567+
});
568568
});

__tests__/api/BundleDeploy/__snapshots__/BundleDeployer.test.ts.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -558,6 +558,6 @@ DEPLOY BUNDLE(12345678)
558558
"
559559
`;
560560

561-
exports[`BundleDeployer01 should tolerate empty output from DFHDPLOY 1`] = `"DFHDPLOY did not generate any output. Most recent status update: 'Submitting DFHDPLOY JCL'."`;
561+
exports[`BundleDeployer01 should tolerate empty output from DFHDPLOY 1`] = `"DFHDPLOY did not generate any output. Most recent status update: 'Submitting DFHDPLOY JCL for the DEPLOY action'."`;
562562

563563
exports[`BundleDeployer01 should undeploy successfully 1`] = `"Bundle undeployment successful."`;

0 commit comments

Comments
 (0)