From bcce968ea278ed66c470ac99cbced3ad98a5d19e Mon Sep 17 00:00:00 2001 From: Trae Yelovich Date: Thu, 9 May 2024 11:35:29 -0400 Subject: [PATCH] fix: failing unit tests Signed-off-by: Trae Yelovich --- .../__tests__/__unit__/shared/utils.unit.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/zowe-explorer/__tests__/__unit__/shared/utils.unit.test.ts b/packages/zowe-explorer/__tests__/__unit__/shared/utils.unit.test.ts index 44de59f920..1a0a800efb 100644 --- a/packages/zowe-explorer/__tests__/__unit__/shared/utils.unit.test.ts +++ b/packages/zowe-explorer/__tests__/__unit__/shared/utils.unit.test.ts @@ -1148,7 +1148,7 @@ describe("Shared utils unit tests - function initializeFileOpening", () => { }); await sharedUtils.initializeFileOpening(testNode, testNode.fullPath, true); - expect(globalMocks.mockExecuteCommand).toHaveBeenCalledWith("vscode.open", { path: "" }); + expect(globalMocks.mockExecuteCommand).toHaveBeenCalledWith("vscode.open", { fsPath: "", path: "" }); }); it("successfully handles text data sets that should be previewed", async () => { @@ -1246,7 +1246,7 @@ describe("Shared utils unit tests - function initializeFileOpening", () => { testNode.fullPath = "test/testFile"; await sharedUtils.initializeFileOpening(testNode, testNode.fullPath, true); - expect(globalMocks.mockExecuteCommand).toHaveBeenCalledWith("vscode.open", { path: testNode.fullPath }); + expect(globalMocks.mockExecuteCommand).toHaveBeenCalledWith("vscode.open", { fsPath: testNode.fullPath, path: testNode.fullPath }); }); it("successfully handles text USS files that should be previewed", async () => {