From d0bc378e028db1435aa6f99ba9c1338a6297a423 Mon Sep 17 00:00:00 2001 From: Trae Yelovich Date: Fri, 31 Jan 2025 09:58:24 -0500 Subject: [PATCH] fix: correct expected value in createZoweSchema test Signed-off-by: Trae Yelovich --- .../__tests__/__unit__/configuration/Profiles.unit.test.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/zowe-explorer/__tests__/__unit__/configuration/Profiles.unit.test.ts b/packages/zowe-explorer/__tests__/__unit__/configuration/Profiles.unit.test.ts index edd40750f2..687d4a501d 100644 --- a/packages/zowe-explorer/__tests__/__unit__/configuration/Profiles.unit.test.ts +++ b/packages/zowe-explorer/__tests__/__unit__/configuration/Profiles.unit.test.ts @@ -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);