mirror of https://github.com/logseq/logseq
Enable disabled extract tests that kondo was warning us about
I did have to reintroduce :block/level in extract for tests to passpull/3870/head^2
parent
97632c8c25
commit
8cca1dd6b1
|
@ -146,7 +146,7 @@
|
|||
pages (remove nil? pages)
|
||||
pages (map (fn [page] (assoc page :block/uuid (db/new-block-id))) pages)
|
||||
blocks (->> (remove nil? blocks)
|
||||
(map (fn [b] (dissoc b :block/title :block/body :block/level))))]
|
||||
(map (fn [b] (dissoc b :block/title :block/body))))]
|
||||
[pages blocks])
|
||||
(catch js/Error e
|
||||
(log/error :exception e))))
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
(p/then
|
||||
(extract x)
|
||||
(fn [v]
|
||||
(is (= y))
|
||||
(is (= y v))
|
||||
(done)))))
|
||||
|
||||
(deftest test-extract-blocks-pages
|
||||
|
|
Loading…
Reference in New Issue