mirror of https://github.com/logseq/logseq
fix: datoms count
parent
71514ab36c
commit
00e13c1fc5
|
@ -142,7 +142,7 @@
|
|||
;; only increase over time as the docs graph rarely has deletions
|
||||
(testing "Counts"
|
||||
(is (= 211 (count files)) "Correct file count")
|
||||
(is (= 41820 (count (d/datoms db :eavt))) "Correct datoms count")
|
||||
(is (= 41778 (count (d/datoms db :eavt))) "Correct datoms count")
|
||||
|
||||
(is (= 3600
|
||||
(ffirst
|
||||
|
|
|
@ -217,7 +217,8 @@
|
|||
(map #(select-keys % [:block/properties :block/invalid-properties]))))
|
||||
"Has correct (in)valid block properties")
|
||||
|
||||
(is (= [{:block/properties {:foo "valid"}}]
|
||||
(is (= [{:block/properties {:foo "valid"}
|
||||
:block/invalid-properties #{"[[foo]]" "some,prop"}}]
|
||||
(->> (d/q '[:find (pull ?b [*])
|
||||
:in $
|
||||
:where [?b :block/properties] [?b :block/name]]
|
||||
|
|
Loading…
Reference in New Issue