fix: CI test

pull/1053/head
Tienson Qin 2021-01-02 19:18:49 +08:00
parent 2d6abc2b04
commit e18df78820
2 changed files with 4 additions and 4 deletions

View File

@ -203,8 +203,6 @@
(defn with-page-refs
[{:keys [title body tags ref-pages] :as block}]
(prn {:tags tags
:ref-pages ref-pages})
(let [ref-pages (->> (concat tags ref-pages)
(remove string/blank?)
(distinct))

View File

@ -372,7 +372,8 @@ parent: child page 2
(testing "Nested boolean queries"
(are [x y] (= (q-count x) y)
"(and (todo done) (not [[page 1]]))"
{:query '([?b :block/marker ?marker]
{:query '([?b :block/uuid]
[?b :block/marker ?marker]
[(contains? #{"DONE"} ?marker)]
(not [?b :block/ref-pages [:page/name "page 1"]]))
:count 0})
@ -407,7 +408,8 @@ parent: child page 2
(are [x y] (= (q-count x) y)
"(and (todo now later done) (or [[page 1]] (not [[page 1]])))"
{:query '([?b :block/marker ?marker]
{:query '([?b :block/uuid]
[?b :block/marker ?marker]
[(contains? #{"NOW" "LATER" "DONE"} ?marker)]
(or
(and [?b :block/ref-pages [:page/name "page 1"]])