Skip to content

Commit

Permalink
get profiles after updated property in unit test
Browse files Browse the repository at this point in the history
Signed-off-by: jace-roell <[email protected]>
  • Loading branch information
jace-roell committed Jan 3, 2025
1 parent 755868a commit d8a2eb7
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1354,7 +1354,6 @@ describe("TeamConfig ProfileInfo tests", () => {
process.env[testEnvPrefix + "_CLI_HOME"] = nestedTeamProjDirEmptyBase;
const profInfo = createNewProfInfo(nestedTeamProjDirEmptyBase);
await profInfo.readProfilesFromDisk({ projectDir: nestedTeamProjDirEmptyBaseProj});
const profiles = profInfo.getAllProfiles();
const upd = { profileName: "lpar1.zosmf", profileType: "zosmf" };

let caughtError;
Expand All @@ -1364,7 +1363,7 @@ describe("TeamConfig ProfileInfo tests", () => {
} catch (error) {
caughtError = error;
}

const profiles = profInfo.getAllProfiles();
const targetProfile = profiles.find(p => p.profName === "base1234567");
expect(caughtError).toBeUndefined();
expect(targetProfile).toBeDefined();
Expand Down

0 comments on commit d8a2eb7

Please sign in to comment.