mirror of
https://github.com/logseq/logseq.git
synced 2026-04-29 08:26:40 +00:00
Merge branch 'feat/db' into refactor/page-parent
This commit is contained in:
@@ -173,7 +173,7 @@
|
||||
(is (= 25 (count (d/q '[:find ?b :where [?b :block/tags :logseq.class/Journal]] @conn))))
|
||||
|
||||
(is (= 4 (count (d/q '[:find ?b :where [?b :block/tags :logseq.class/Task]] @conn))))
|
||||
(is (= 3 (count (d/q '[:find ?b :where [?b :block/tags :logseq.class/Query]] @conn))))
|
||||
(is (= 4 (count (d/q '[:find ?b :where [?b :block/tags :logseq.class/Query]] @conn))))
|
||||
(is (= 2 (count (d/q '[:find ?b :where [?b :block/tags :logseq.class/Card]] @conn))))
|
||||
|
||||
;; Properties and tags aren't included in this count as they aren't a Page
|
||||
@@ -520,7 +520,7 @@
|
||||
"Correct number of user classes")
|
||||
|
||||
(is (= 4 (count (d/q '[:find ?b :where [?b :block/tags :logseq.class/Task]] @conn))))
|
||||
(is (= 3 (count (d/q '[:find ?b :where [?b :block/tags :logseq.class/Query]] @conn))))
|
||||
(is (= 4 (count (d/q '[:find ?b :where [?b :block/tags :logseq.class/Query]] @conn))))
|
||||
(is (= 2 (count (d/q '[:find ?b :where [?b :block/tags :logseq.class/Card]] @conn))))
|
||||
|
||||
(testing "replacing refs in :block/title when :remove-inline-tags? set"
|
||||
@@ -693,7 +693,7 @@
|
||||
|
||||
(deftest-async export-config-file-sets-title-format
|
||||
(p/let [conn (db-test/create-conn)
|
||||
read-file #(p/do! (pr-str {:journal/page-title-format "yyyy-MM-dd"}))
|
||||
read-file #(p/do! "{:journal/page-title-format \"yyyy-MM-dd\"}")
|
||||
_ (gp-exporter/export-config-file conn "logseq/config.edn" read-file {})]
|
||||
(is (= "yyyy-MM-dd"
|
||||
(:logseq.property.journal/title-format (d/entity @conn :logseq.class/Journal)))
|
||||
|
||||
Reference in New Issue
Block a user