Skip to content

Commit

Permalink
update snapshots
Browse files Browse the repository at this point in the history
Signed-off-by: zFernand0 <[email protected]>
  • Loading branch information
zFernand0 committed Mar 7, 2024
1 parent d97087e commit 98f8f40
Show file tree
Hide file tree
Showing 9 changed files with 28 additions and 28 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ describe("Delete uss file handler", () => {
ussFile: "ussFile1"
},
connection: {
deleteDataset: jest.fn().mockReturnValue(Promise.resolve(""))
deleteFile: jest.fn().mockReturnValue(Promise.resolve(""))
},
response: mockResponse
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Array [
exports[`List data set handler should return correct message if the data set is found. 2`] = `
Object {
"fields": Array [
"dsname",
"name",
],
"format": "table",
"output": Array [
Expand All @@ -33,7 +33,7 @@ exports[`List data set handler should return no data set if the data set is not
exports[`List data set handler should return no data set if the data set is not found. 2`] = `
Object {
"fields": Array [
"dsname",
"name",
],
"format": "table",
"output": Array [],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ exports[`List spool files by job id handler should return correct message if at
Object {
"fields": Array [
"id",
"ddname",
"procstep",
"stepname",
"ddName",
"procStep",
"stepName",
],
"format": "table",
"output": Array [
Expand Down Expand Up @@ -35,9 +35,9 @@ exports[`List spool files by job id handler should return correct message if at
Object {
"fields": Array [
"id",
"ddname",
"procstep",
"stepname",
"ddName",
"procStep",
"stepName",
],
"format": "table",
"output": Array [
Expand All @@ -57,9 +57,9 @@ exports[`List spool files by job id handler should return no spool file if the n
Object {
"fields": Array [
"id",
"ddname",
"procstep",
"stepname",
"ddName",
"procStep",
"stepName",
],
"format": "table",
"output": Array [],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ describe("Upload file to data set handler", () => {
ussFile: "/u/user/ussfile1"
},
connection: {
uploadDataset: jest.fn().mockReturnValue(Promise.resolve(""))
uploadFile: jest.fn().mockReturnValue(Promise.resolve(""))
},
response: mockResponse
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ describe("Upload stdin to USS file handler", () => {
ussFile: "/u/user/ussfile1"
},
connection: {
uploadDataset: jest.fn().mockReturnValue(Promise.resolve(""))
uploadFile: jest.fn().mockReturnValue(Promise.resolve(""))
},
response: mockResponse
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ Object {
"positionals": Array [
Object {
"description": "The ID of the jobfor which you would like to list spool files",
"name": "jobid",
"name": "jobId",
"required": true,
"type": "string",
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ describe("View job status by jobid handler", () => {
const handler = new ViewJobStatusByJobIdHandler();

const jobDetails = {
jobname: "jobname1",
jobid: "jobid1",
jobName: "jobName1",
jobId: "jobId1",
owner: "owner1",
status: "success",
rc: 0
Expand All @@ -28,7 +28,7 @@ describe("View job status by jobid handler", () => {
const mockResponse = TestUtils.getMockResponse();
const mockParams: any = {
arguments: {
jobid: "jobID1"
jobId: "jobID1"
},
connection: {
getJobStatus: jest.fn().mockReturnValue(Promise.resolve(jobDetails))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

exports[`View job status by jobid handler should return correct job status if the job is found. 1`] = `
Object {
"jobid": "jobid1",
"jobname": "jobname1",
"jobId": "jobId1",
"jobName": "jobName1",
"owner": "owner1",
"rc": 0,
"status": "success",
Expand All @@ -13,17 +13,17 @@ Object {
exports[`View job status by jobid handler should return correct job status if the job is found. 2`] = `
Object {
"fields": Array [
"jobname",
"jobid",
"jobName",
"jobId",
"owner",
"status",
"rc",
"retcode",
],
"format": "object",
"output": Object {
"jobid": "jobid1",
"jobname": "jobname1",
"jobId": "jobId1",
"jobName": "jobName1",
"owner": "owner1",
"rc": 0,
"status": "success",
Expand Down

0 comments on commit 98f8f40

Please sign in to comment.