Skip to content

Commit

Permalink
fix: correct expected value in createZoweSchema test
Browse files Browse the repository at this point in the history
Signed-off-by: Trae Yelovich <[email protected]>
  • Loading branch information
traeok committed Jan 31, 2025
1 parent 395a02f commit d0bc378
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -621,10 +621,8 @@ describe("Profiles Unit Tests - Function createZoweSchema", () => {
});

jest.spyOn(globalMocks.mockProfileInstance, "createNonSecureProfile").mockImplementation();
const expectedValue =
process.platform === "win32"
? "file:\\globalPath\\.zowe\\zowe.config.json"
: "file:/globalPath/.zowe/zowe.config.json".split(path.sep).join(path.posix.sep);

const expectedValue = path.join("file:", "globalPath", ".zowe", "zowe.config.json");

const spyConfig = jest.spyOn(Profiles.getInstance(), "openConfigFile").mockImplementation();
await Profiles.getInstance().createZoweSchema(blockMocks.testDatasetTree);
Expand Down

0 comments on commit d0bc378

Please sign in to comment.