mirror of
https://github.com/logseq/logseq.git
synced 2026-04-29 08:26:40 +00:00
fix: check pages only
This commit is contained in:
@@ -394,11 +394,11 @@
|
||||
(cons {:parent (:block/title parent) :child (:block/title ent)}
|
||||
(mapcat #(expand-children % ent) children))
|
||||
[{:parent (:block/title parent) :child (:block/title ent)}]))]
|
||||
;; check pages only
|
||||
(is (= [{:parent "n1" :child "x"}
|
||||
{:parent "x" :child "z"}
|
||||
{:parent "x" :child "y"}
|
||||
{:parent "y", :child "some content"}]
|
||||
(rest (expand-children (db-test/find-page-by-title @conn "n1") nil)))
|
||||
{:parent "x" :child "y"}]
|
||||
(take 3 (rest (expand-children (db-test/find-page-by-title @conn "n1") nil))))
|
||||
"First namespace tests duplicate parent page name")
|
||||
(is (= [{:parent "n2" :child "x"}
|
||||
{:parent "x" :child "z"}
|
||||
|
||||
Reference in New Issue
Block a user