Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows
test(md_help): expect the guttered console block per syntax-highlighting (#3916)
Worktrunk Bot50245a5a7e6f
diff --git a/src/md_help.rs b/src/md_help.rsindex 96e405c98..1a3fd3dcd 100644--- a/src/md_help.rs+++ b/src/md_help.rs@@ -737,14 +737,24 @@ mod tests {");// The gutter path renders it too, and the marker inside the fence does- // not leak into the following block.+ // not leak into the following block. Only the trailing `console`+ // block's rendering depends on `syntax-highlighting`, so its+ // expectation is per configuration; the containment the test is+ // about is asserted either way.let guttered =render_markdown_in_help("```\n<!-- wt list -->\n```\n\n```console\n$ wt\n```");+ #[cfg(feature = "syntax-highlighting")]assert_snapshot!(guttered, @"[107m [0m [2m<!-- wt list -->[0m[107m [0m [2m[0m[2m[34mwt[0m");+ #[cfg(not(feature = "syntax-highlighting"))]+ assert_snapshot!(guttered, @"+ [107m [0m [2m<!-- wt list -->[0m++ [107m [0m wt+ ");// Outside a fence it is still a marker, not content.assert_snapshot!(render_markdown_in_help("<!-- wt list -->"), @"");