test: restore mnote-web lib baseline

This commit is contained in:
lix-2026
2026-05-25 23:34:03 +08:00
parent e90b8cb632
commit 36a5a0dc3a
6 changed files with 68 additions and 39 deletions
@@ -979,8 +979,8 @@ mod tests {
.iter()
.find(|document| document.path == "docs/child.md")
.expect("child document");
// frontmatter title "Child Updated" 优先于文件名 "child"
assert_eq!(child.title, "Child Updated");
// 本地 Markdown 的树标题统一来自文件名;frontmatter/H1 只进入正文和索引文本
assert_eq!(child.title, "child");
assert!(child.raw_text.contains("ChangedToken"));
fs::remove_file(root.join("docs").join("child.md")).expect("remove child");