Skip to content

Commit

Permalink
fix: CI
Browse files Browse the repository at this point in the history
  • Loading branch information
tiensonqin committed Mar 1, 2021
1 parent fe663cc commit 2071de2
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/test/frontend/db/query_dsl_test.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ parent: child page 2
" " empty-result))

(testing "Non exists page should be ignored"
(are [x y] (= (q x) y)
(are [x y] (nil? (:result (q x)))
"[[page-not-exist]]" empty-result
"[[another-page-not-exist]]" empty-result))

Expand Down Expand Up @@ -259,32 +259,32 @@ parent: child page 2
(are [x y] (= (q-count x) y)
"(page-tags [[page-tag-1]])"
{:query '[[?p :page/tags ?t]
[?t :page/name ?tag]
[(contains? #{"page-tag-1"} ?tag)]]
[?t :page/name ?tag1]
[(contains? #{"page-tag-1"} ?tag1)]]
:count 1}

"(page-tags page-tag-2)"
{:query '[[?p :page/tags ?t]
[?t :page/name ?tag]
[(contains? #{"page-tag-2"} ?tag)]]
[?t :page/name ?tag1]
[(contains? #{"page-tag-2"} ?tag1)]]
:count 2}

"(page-tags page-tag-1 page-tag-2)"
{:query '[[?p :page/tags ?t]
[?t :page/name ?tag]
[(contains? #{"page-tag-1" "page-tag-2"} ?tag)]]
[?t :page/name ?tag1]
[(contains? #{"page-tag-1" "page-tag-2"} ?tag1)]]
:count 2}

"(page-tags page-TAG-1 page-tag-2)"
{:query '[[?p :page/tags ?t]
[?t :page/name ?tag]
[(contains? #{"page-tag-1" "page-tag-2"} ?tag)]]
[?t :page/name ?tag1]
[(contains? #{"page-tag-1" "page-tag-2"} ?tag1)]]
:count 2}

"(page-tags [page-tag-1 page-tag-2])"
{:query '[[?p :page/tags ?t]
[?t :page/name ?tag]
[(contains? #{"page-tag-1" "page-tag-2"} ?tag)]]
[?t :page/name ?tag1]
[(contains? #{"page-tag-1" "page-tag-2"} ?tag1)]]
:count 2}))

(testing "page-property queries"
Expand Down

0 comments on commit 2071de2

Please sign in to comment.