Browse Source

fix lint and test

rcmerci 10 months ago
parent
commit
1bd5028906

+ 3 - 4
src/main/frontend/common/missionary_util.cljs

@@ -86,10 +86,9 @@
   [task key & {:keys [succ fail]}]
   (task (or succ #(prn key :succ %)) (or fail #(js/console.log key %))))
 
-(comment
-  (defn run-task-throw
-    [task key & {:keys [succ]}]
-    (task (or succ #(prn key :succ %)) #(throw (ex-info "task failed" {:key key :e %})))))
+(defn run-task-throw
+  [task key & {:keys [succ]}]
+  (task (or succ #(prn key :succ %)) #(throw (ex-info "task failed" {:key key :e %}))))
 
 (defonce ^:private *background-task-cancelers ; key -> canceler
   (volatile! {}))

+ 1 - 0
src/main/frontend/handler/db_based/rtc_flows.cljs

@@ -1,4 +1,5 @@
 (ns frontend.handler.db-based.rtc-flows
+  "Flows related to RTC"
   (:require [frontend.common.missionary-util :as c.m]
             [frontend.state :as state]
             [logseq.common.util :as common-util]

+ 1 - 1
src/test/frontend/worker/rtc/remote_update_test.cljs

@@ -9,7 +9,7 @@
 (deftest remote-op-value->tx-data-test
   (let [[block-uuid ref-uuid1 ref-uuid2] (repeatedly random-uuid)
         db (d/db-with (d/empty-db db-schema/schema-for-db-based-graph)
-                      (sqlite-create-graph/build-db-initial-data {}))]
+                      (sqlite-create-graph/build-db-initial-data ""))]
     (testing ":block/title"
       (let [db (d/db-with db [{:block/uuid block-uuid
                                :block/title "local-content"}])