Skip to content

Commit

Permalink
consolidated code
Browse files Browse the repository at this point in the history
Signed-off-by: jace-roell <[email protected]>
  • Loading branch information
jace-roell committed Dec 12, 2024
1 parent a24a551 commit 4c77794
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ import { ConfigProfiles } from "../src/api";
import { IExtendersJsonOpts } from "../src/doc/IExtenderOpts";
import { ConfigSchema } from "../src/ConfigSchema";
import { Logger } from "../../logger/src/Logger";
import { IProfLocOsLoc } from "@zowe/imperative";

const testAppNm = "ProfInfoApp";
const testEnvPrefix = testAppNm.toUpperCase();
Expand Down Expand Up @@ -961,13 +960,12 @@ describe("TeamConfig ProfileInfo tests", () => {
const profInfo = createNewProfInfo(teamProjDir);
await profInfo.readProfilesFromDisk();

const mockResp: IProfLocOsLoc[] = [{
jest.spyOn(ProfileInfo.prototype, "getOsLocInfo").mockReturnValue([{
global: true,
name: "LPAR1",
path: "/mocked/path/xyz",
user: true
}];
jest.spyOn(ProfileInfo.prototype, "getOsLocInfo").mockReturnValue(mockResp);
}]);

// Simulate the condition where the active layer has no `defaults.base` but global and user layers exist
const layerActive = profInfo.getTeamConfig().layerActive();
Expand Down

0 comments on commit 4c77794

Please sign in to comment.