Skip to content

Commit

Permalink
Confirm output with or without ZOWE_ variables
Browse files Browse the repository at this point in the history
Signed-off-by: Gene Johnston <[email protected]>
  • Loading branch information
gejohnston committed Oct 18, 2023
1 parent 1474e94 commit c88bcbf
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,8 @@ describe("Tests for EnvQuery module", () => {
it("should report that no other Zowe variables are set", async () => {
const itemObj: IGetItemVal = await EnvQuery.getEnvItemVal(ItemId.OTHER_ZOWE_VARS);
expect(itemObj.itemVal).toBeNull();
expect(itemObj.itemValMsg).toContain("No other 'ZOWE_' variables have been set.");
const regex = /(^ZOWE_)|(No other 'ZOWE_' variables have been set.)/;
expect(itemObj.itemValMsg).toMatch(regex);
expect(itemObj.itemProbMsg).toBe("");
});

Expand Down

0 comments on commit c88bcbf

Please sign in to comment.