Skip to content

Commit

Permalink
Improved code coverage in init.ts
Browse files Browse the repository at this point in the history
Signed-off-by: SanthoshiBoyina <[email protected]>
  • Loading branch information
SanthoshiBoyina1 committed Sep 29, 2023
1 parent f4c3c98 commit ab0c271
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/zowe-explorer/__tests__/__unit__/job/init.unit.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ describe("Test src/jobs/extension", () => {
onDidChangeConfiguration: jest.fn(),
pollData: jest.fn(),
refreshElement: jest.fn(),
filterJobs: jest.fn(),
filterSpools: jest.fn(),
};
const commands: IJestIt[] = [
{
Expand Down Expand Up @@ -219,6 +221,14 @@ describe("Test src/jobs/extension", () => {
mock: [{ spy: jest.spyOn(jobActions, "cancelJobs"), arg: [jobsProvider, [exampleData.job]] }],
parm: [exampleData.job],
},
{
name: "zowe.jobs.filterJobs",
mock: [{ spy: jest.spyOn(jobActions, "filterJobs"), arg: [jobsProvider] }],
},
{
name: "zowe.jobs.filterSpools",
mock: [{ spy: jest.spyOn(jobActions, "filterSpools"), arg: [jobsProvider, test.value] }],
},
];

beforeAll(async () => {
Expand Down

0 comments on commit ab0c271

Please sign in to comment.