Skip to content

Commit

Permalink
Unit test
Browse files Browse the repository at this point in the history
Signed-off-by: Rushabh Sojitra <[email protected]>
  • Loading branch information
almightyrush authored and AndrewTwydell committed Feb 5, 2025
1 parent e636504 commit 9b602c4
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
*/

const getFolderIconMock = jest.fn();
const setLabel = jest.fn();

import { CICSRegionTree } from "../../../src/trees/CICSRegionTree";
import { CICSTaskTree } from "../../../src/trees/CICSTaskTree";
Expand Down
38 changes: 38 additions & 0 deletions packages/vsce/__tests__/__unit__/trees/CICSTree.unit.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
/**
* This program and the accompanying materials are made available under the terms of the
* Eclipse Public License v2.0 which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-v20.html
*
* SPDX-License-Identifier: EPL-2.0
*
* Copyright Contributors to the Zowe Project.
*
*/
const profilesCacheRefreshMock = jest.fn();

import { CICSTree } from "../../../src/trees/CICSTree";

jest.mock("../../../src/utils/PersistentStorage", () => ({
get PersistentStorage() {
return jest.fn().mockImplementation(() => {
return {
getLoadedCICSProfile: profilesCacheRefreshMock,
};
});
},
}));
jest.mock("../../../src/utils/profileManagement", () => ({
ProfileManagement: {
profilesCacheRefresh: profilesCacheRefreshMock,
},
}));

describe("Test suite for CICSTree", () => {
let sut: CICSTree;
beforeEach(() => {
sut = new CICSTree();
});
it("Should run the test", () => {
expect(true).toBeTruthy();
});
});

0 comments on commit 9b602c4

Please sign in to comment.