Skip to content

Commit 2fc21aa

Browse files
authored
test(cli): tidy config help assertion comment
1 parent 86d81ac commit 2fc21aa

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

src/cli/config-cli.test.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1222,12 +1222,7 @@ describe("config cli", () => {
12221222
expect(helpText).toContain("--batch-json");
12231223
expect(helpText).toContain("--dry-run");
12241224
expect(helpText).toContain("--allow-exec");
1225-
// Example commands may include --profile/--container flags injected by
1226-
// formatCliCommand when OPENCLAW_PROFILE or OPENCLAW_CONTAINER_HINT env
1227-
// vars leak from a prior test in the same worker. Commander also
1228-
// word-wraps long description lines.
1229-
// We normalize all whitespace to single spaces so we can use simple
1230-
// string matching without worrying about flag injection or line reflowing.
1225+
// Ignore Commander line wrapping and env-injected CLI prefixes.
12311226
const normalizedHelp = helpText.replace(/\s+/g, " ");
12321227
expect(normalizedHelp).toContain("config set gateway.port 19001 --strict-json");
12331228
expect(normalizedHelp).toContain(

0 commit comments

Comments
 (0)