fix tests

This commit is contained in:
Tienson Qin
2022-03-31 14:39:01 +08:00
parent a630983cdc
commit 544f0aed81
4 changed files with 10 additions and 24 deletions

View File

@@ -496,10 +496,9 @@
blocks)
blocks)
blocks (map (fn [block]
(let [delete-keys (if with-body?
[:block/anchor]
[:block/anchor :block/body])]
(apply dissoc block delete-keys))) blocks)]
(if with-body?
block
(dissoc block :block/body))) blocks)]
(with-path-refs blocks)))
(defn ^:large-vars/cleanup-todo extract-blocks