Solution for long term memory for agent coding CLIs and to facilitate handoff between different agent vendors
Rust
test(web): fix assertions for heading ID emission
Vinícius DS Andradeab1a66ff0424
diff --git a/crates/ai-memory-web/src/markdown.rs b/crates/ai-memory-web/src/markdown.rsindex 7f539518..6c4d3ef1 100644--- a/crates/ai-memory-web/src/markdown.rs+++ b/crates/ai-memory-web/src/markdown.rs@@ -1198,7 +1198,9 @@ mod tests {let md = "## Hello **bold** and `code` span";let html = render(md, "default", "scratch");assert!(- html.contains(r#"<h2 id="hello-bold-and-code">Hello <strong>bold</strong> and <code>code</code> span</h2>"#),+ html.contains(+ r#"<h2 id="hello-bold-and-code-span">Hello <strong>bold</strong> and <code>code</code> span</h2>"#+ ),"inline formatting: {html}");}diff --git a/crates/ai-memory-web/tests/suite/routes.rs b/crates/ai-memory-web/tests/suite/routes.rsindex 92e5a928..60c54fa0 100644--- a/crates/ai-memory-web/tests/suite/routes.rs+++ b/crates/ai-memory-web/tests/suite/routes.rs@@ -243,7 +243,8 @@ async fn page_view_keeps_a_leading_h1_that_is_not_the_title() {);let text = get("/w/default/scratch/p/notes/same.md").await;assert!(- !text.contains("Same title</h1>"),+ !text.contains("<h1>Same title</h1>")+ && !text.contains(r#"<h1 id="same-title">Same title</h1>"#),"an H1 that repeats the title should not render twice: {text}");}