Improve local filetree view state and sidebar performance
This commit is contained in:
@@ -193,8 +193,10 @@ async function main() {
|
||||
);
|
||||
assert(markdown.includes("# 正文标题"), "正文 H1 应写回 markdown");
|
||||
assert(markdown.includes("正文已保存"), "正文段落应写回 markdown");
|
||||
const options = fs.readFileSync(path.join(managedRoot, ".mnote", "page-options.json"), "utf8");
|
||||
assert(options.includes("showToc"), "页面设置应写入 .mnote/page-options.json");
|
||||
assert(
|
||||
!fs.existsSync(path.join(managedRoot, ".mnote", "page-options.json")),
|
||||
"页面设置不应继续写入 .mnote/page-options.json",
|
||||
);
|
||||
|
||||
console.log("task167 local markdown title/body/options no-convex smoke passed");
|
||||
} finally {
|
||||
|
||||
Reference in New Issue
Block a user