diff --git a/src/main/frontend/handler/block.cljs b/src/main/frontend/handler/block.cljs index 34c8f0d7a..9abbe5979 100644 --- a/src/main/frontend/handler/block.cljs +++ b/src/main/frontend/handler/block.cljs @@ -107,7 +107,7 @@ (defn- find-last-node [root-node-id indexed-by-position indexed-by-id] - "Root node is not in these blocks which be indexed. Tt should be the page + "Root node is not in these blocks which be indexed. It should be the page block's :db/id." (assert (some? root-node-id) "root-node-id should satisfy some?.") (assert (and (map? indexed-by-position) (seq indexed-by-position)) diff --git a/src/test/frontend/handler/block_test.cljs b/src/test/frontend/handler/block_test.cljs index 2801a7dd0..4e571532a 100644 --- a/src/test/frontend/handler/block_test.cljs +++ b/src/test/frontend/handler/block_test.cljs @@ -106,7 +106,7 @@ :block/level 4, :block/refs-with-children ()})})}]) -#_(deftest test-blocks->vec-tree +(deftest test-blocks->vec-tree (let [should-r (vec blocks->vec-tree-return)] (let [r (block/blocks->vec-tree blocks->vec-tree-sequential-block-args)] (is (= should-r (vec r))))