From 31601a03359cab248695ffeb95480745e63da9bc Mon Sep 17 00:00:00 2001 From: Billie Simmons <49491949+JillieBeanSim@users.noreply.github.com> Date: Tue, 18 Feb 2025 16:43:41 -0500 Subject: [PATCH] fix tests order info Signed-off-by: Billie Simmons <49491949+JillieBeanSim@users.noreply.github.com> --- .../__tests__/__unit__/trees/uss/ZoweUSSNode.unit.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/zowe-explorer/__tests__/__unit__/trees/uss/ZoweUSSNode.unit.test.ts b/packages/zowe-explorer/__tests__/__unit__/trees/uss/ZoweUSSNode.unit.test.ts index 7f1eed7a5..500c90533 100644 --- a/packages/zowe-explorer/__tests__/__unit__/trees/uss/ZoweUSSNode.unit.test.ts +++ b/packages/zowe-explorer/__tests__/__unit__/trees/uss/ZoweUSSNode.unit.test.ts @@ -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,