fix: remove unused :node-class? option on fn

Only classes will use this fn so it's no longer needed. The option was
also missing on a couple fns which could've lead to buggy behavior
This commit is contained in:
Gabriel Horner
2025-05-21 10:05:20 -04:00
parent 0c0fb978d3
commit a350aa4cc3
5 changed files with 23 additions and 25 deletions

View File

@@ -3,7 +3,8 @@
[datascript.core :as d]
[frontend.worker.handler.page.db-based.page :as worker-db-page]
[logseq.db :as ldb]
[logseq.db.test.helper :as db-test]))
[logseq.db.test.helper :as db-test]
[logseq.db.frontend.db :as db-db]))
(deftest create-class
(let [conn (db-test/create-conn)
@@ -40,8 +41,8 @@
(is (= ["foo" "bar"] (map :block/title [(:block/parent (:block/parent child-page))
(:block/parent child-page)]))
"Child page with new parent has correct parents")
(is (= (map :block/uuid (ldb/get-class-extends child-page))
(map :block/uuid (ldb/get-class-extends child-page2)))
(is (= (map :block/uuid (db-db/get-page-parents child-page))
(map :block/uuid (db-db/get-page-parents child-page2)))
"Child page with existing parents has correct parents")
(is (= ["Root Tag" "c1"] (map :block/title (ldb/get-classes-parents [child-page3])))
"Child class with new parent has correct parents")