Skip to content

Commit

Permalink
fix: failing unit tests
Browse files Browse the repository at this point in the history
Signed-off-by: Trae Yelovich <[email protected]>
  • Loading branch information
traeok committed May 9, 2024
1 parent b414c1f commit bcce968
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => {
Expand Down Expand Up @@ -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 () => {
Expand Down

0 comments on commit bcce968

Please sign in to comment.