File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 (
You can’t perform that action at this time.
0 commit comments