Ver Fonte

fix: unit tests

Tienson Qin há 1 ano atrás
pai
commit
8054150eef

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

@@ -106,7 +106,7 @@
                 (into {})))
         "Task marker counts")
 
-    (is (= {:markdown 6106 :org 509} (get-block-format-counts db))
+    (is (= {:markdown 6100 :org 509} (get-block-format-counts db))
         "Block format counts")
 
     (is (= {:description 81, :updated-at 46, :tags 5,
@@ -148,7 +148,7 @@
   ;; only increase over time as the docs graph rarely has deletions
   (testing "Counts"
     (is (= 303 (count files)) "Correct file count")
-    (is (= 63954 (count (d/datoms db :eavt))) "Correct datoms count")
+    (is (= 63618 (count (d/datoms db :eavt))) "Correct datoms count")
 
     (is (= 5866
            (ffirst

+ 1 - 0
src/test/frontend/worker/handler/page/rename_test.cljs

@@ -32,6 +32,7 @@
 
   (testing "Name changed"
     (let [page (db/get-page "Test")]
+      (page-rename (:block/uuid page) "New name")
       (is (= "New name" (:block/original-name (db/entity (:db/id page)))))))
 
   ;; (testing "Merge existing page"