-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Rushabh Sojitra <[email protected]>
- Loading branch information
1 parent
e636504
commit 9b602c4
Showing
2 changed files
with
38 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
packages/vsce/__tests__/__unit__/trees/CICSTree.unit.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
}); | ||
}); |