瀏覽代碼

feat(query-dsl): fix tests caused by different timezones

Tienson Qin 4 年之前
父節點
當前提交
d80b8fc801
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      src/test/frontend/db/query_dsl_test.cljs

+ 3 - 3
src/test/frontend/db/query_dsl_test.cljs

@@ -354,7 +354,7 @@ parent: child page 2
 
 
   (testing "Between query"
   (testing "Between query"
     (are [x y] (= (count-only x) y)
     (are [x y] (= (count-only x) y)
-      "(and (todo now later done) (between [[Dec 26th, 2020]] today))"
+      "(and (todo now later done) (between [[Dec 26th, 2020]] tomorrow))"
       5
       5
 
 
       ;; between with journal pages
       ;; between with journal pages
@@ -362,11 +362,11 @@ parent: child page 2
       2
       2
 
 
       ;; between with created_at
       ;; between with created_at
-      "(and (todo now later done) (between created_at [[Dec 26th, 2020]] today))"
+      "(and (todo now later done) (between created_at [[Dec 26th, 2020]] tomorrow))"
       5
       5
 
 
       ;; between with last_modified_at
       ;; between with last_modified_at
-      "(and (todo now later done) (between last_modified_at [[Dec 26th, 2020]] today))"
+      "(and (todo now later done) (between last_modified_at [[Dec 26th, 2020]] tomorrow))"
       5))
       5))
 
 
   (testing "Nested boolean queries"
   (testing "Nested boolean queries"