Browse Source

fix: tests related to :block/type arity change

Gabriel Horner 2 years ago
parent
commit
82994cb79d

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

@@ -103,6 +103,6 @@
         page (first pages)]
     (is (= (get-in page [:block/file :file/path]) "/whiteboards/foo.edn"))
     (is (= (:block/name page) "foo"))
-    (is (true? (contains? (:block/type page) "whiteboard")))
+    (is (= (:block/type page) "whiteboard"))
     (is (= (:block/original-name page) "Foo"))
     (is (every? #(= (:block/parent %) {:block/name "foo"}) blocks))))

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

@@ -95,7 +95,7 @@
             parent (:block/page (ffirst blocks))]
         (is (= {:block/name "foo"
                 :block/original-name "Foo"
-                :block/type #{"whiteboard"}
+                :block/type ["whiteboard"]
                 :block/file {:file/path "/whiteboards/foo.edn"}}
                parent)
             "parsed block in the whiteboard page has correct parent page"))))