Gabriel Horner пре 1 година
родитељ
комит
0fc01b94a3

+ 2 - 2
deps/db/test/logseq/db/sqlite/create_graph_test.cljs

@@ -18,7 +18,7 @@
                                @conn)
                           (map first))
           default-idents (map :db/ident ident-ents)]
-      (is (> (count default-idents) 48)
+      (is (> (count default-idents) 45)
           "Approximate number of default idents is correct")
 
       (testing "namespaces"
@@ -63,7 +63,7 @@
         task (d/entity @conn :logseq.class/task)]
     (is (contains? (:block/type task) "class")
         "Task class has correct type")
-    (is (= 4 (count (:class/schema.properties task)))
+    (is (= 3 (count (:class/schema.properties task)))
         "Has correct number of task properties")
     (is (every? #(contains? (:block/type %) "property")
                 (:class/schema.properties task))

+ 1 - 1
deps/outliner/src/logseq/outliner/core.cljs

@@ -777,7 +777,7 @@
                     block (d/entity @conn (:db/id block))]
                 (when-not (move-to-original-position? [block] target-block sibling? false)
                   (let [tx-data (move-block conn block target-block sibling?)]
-                    (prn "==>> move blocks tx:" tx-data)
+                    ;; (prn "==>> move blocks tx:" tx-data)
                     (ldb/transact! conn tx-data {:sibling? sibling?
                                                  :outliner-op (or outliner-op :move-blocks)}))))))
           nil)))))

+ 1 - 1
src/test/frontend/db/db_based_model_test.cljs

@@ -37,7 +37,7 @@
   (let [opts {:redirect? false :create-first-block? false :class? true}
         _ (page-handler/create! "class1" opts)
         _ (page-handler/create! "class2" opts)]
-    (is (= ["Root class" "Task" "card" "class1" "class2"] (sort (map first (model/get-all-classes repo)))))))
+    (is (= ["Card" "Root class" "Task" "class1" "class2"] (sort (map first (model/get-all-classes repo)))))))
 
 (deftest get-class-objects-test
   (let [opts {:redirect? false :create-first-block? false :class? true}