Skip to content

Commit

Permalink
fix tests order info
Browse files Browse the repository at this point in the history
Signed-off-by: Billie Simmons <[email protected]>
  • Loading branch information
JillieBeanSim committed Feb 18, 2025
1 parent 353ed2d commit 31601a0
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1437,14 +1437,14 @@ describe("ZoweUSSNode Unit Tests - Function node.fetchAttributes", () => {
lookupMock.mockRestore();
});
it("returns undefined if no entry is found", async () => {
const fileEntry = new UssFile("testFile");
const lookupMock = jest.spyOn(UssFSProvider.instance, "lookup").mockReturnValueOnce(fileEntry);
const lookupMock = jest.spyOn(UssFSProvider.instance, "lookup").mockReturnValueOnce(undefined);
const node = new ZoweUSSNode({ label: "testFile", collapsibleState: vscode.TreeItemCollapsibleState.None });
expect(await node.fetchAttributes()).toBeUndefined();
lookupMock.mockRestore();
});
it("returns undefined if API response success is false", async () => {
const lookupMock = jest.spyOn(UssFSProvider.instance, "lookup").mockReturnValueOnce(undefined);
const fileEntry = new UssFile("testFile");
const lookupMock = jest.spyOn(UssFSProvider.instance, "lookup").mockReturnValueOnce(fileEntry);
const node = new ZoweUSSNode({ label: "testFile", collapsibleState: vscode.TreeItemCollapsibleState.None });
jest.spyOn(UssFSProvider.instance, "listFiles").mockResolvedValueOnce({
success: false,
Expand Down

0 comments on commit 31601a0

Please sign in to comment.