Enable disabled extract tests that kondo was warning us about

I did have to reintroduce :block/level in extract for tests to pass
pull/3870/head^2
Gabriel Horner 2022-01-10 11:49:09 -05:00 committed by Tienson Qin
parent 97632c8c25
commit 8cca1dd6b1
2 changed files with 3 additions and 3 deletions

View File

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

View File

@ -21,7 +21,7 @@
(p/then
(extract x)
(fn [v]
(is (= y))
(is (= y v))
(done)))))
(deftest test-extract-blocks-pages