Skip to content

Commit

Permalink
[INTERNAL] Update test assertion to Fix Windows tests
Browse files Browse the repository at this point in the history
  • Loading branch information
maxreichmann committed Jul 9, 2024
1 parent 79ed092 commit 4c05600
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/lib/cli/commands/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,6 @@ test.serial("ui5 config invalid option", async (t) => {
});

test.serial("ui5 config empty option", async (t) => {
t.log("ui5Cli: ", ui5Cli);
await t.throwsAsync(ui5(["config", "set"]), {
message: ($) => {
const message = stripAnsi($);
Expand All @@ -245,12 +244,12 @@ test.serial("ui5 config empty option", async (t) => {

// Begin debug logging TODO: remove later
const expectedMessage = `Command failed with exit code 1: ${ui5Cli} config set`;

t.log("expected message: '", expectedMessage, "'");
t.log("actual message: '", message, "'");
// End debug logging

return message.includes(`Command failed with exit code 1: ${ui5Cli} config set`) &&
return (message.includes(`Command failed with exit code 1: ${ui5Cli} config set`) ||
message.includes(`Command failed with exit code 1: "${ui5Cli}" config set`)) &&
message.includes(`Command Failed:
Not enough non-option arguments: got 0, need at least 1
Expand Down

0 comments on commit 4c05600

Please sign in to comment.