Selaa lähdekoodia

fix: datoms count

Tienson Qin 3 vuotta sitten
vanhempi
sitoutus
00e13c1fc5

+ 1 - 1
deps/graph-parser/src/logseq/graph_parser/test/docs_graph_helper.cljs

@@ -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

+ 2 - 1
deps/graph-parser/test/logseq/graph_parser_test.cljs

@@ -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]]