Просмотр исходного кода

fix: property unit test

This test only failed when run as part of a full test run.
Looks like the cause was d/entity being passed nil. Unsure why this
started failing now and not when datascript was upgraded
Gabriel Horner 2 лет назад
Родитель
Сommit
7df1f57ed2
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      src/test/frontend/util/property_test.cljs

+ 2 - 2
src/test/frontend/util/property_test.cljs

@@ -124,9 +124,9 @@
   (testing "hidden editable properties"
     (are [x y z expected] (= expected (property-util/get-visible-ordered-properties x y z))
       ;; page block
-      {:title "foo"} [:title] {:pre-block? true}
+      {:title "foo"} [:title] {:pre-block? true :page-id 1}
       '()
-      {:title "foo" :foo "bar"} [:title :foo] {:pre-block? true}
+      {:title "foo" :foo "bar"} [:title :foo] {:pre-block? true :page-id 1}
       [[:foo "bar"]]
       ;; normal block
       {:logseq.table.version 2} [:logseq.table.version] {:pre-block? false}