mirror of
https://github.com/logseq/logseq.git
synced 2026-04-24 22:25:01 +00:00
fix: get_all_pages api
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
(ns logseq.e2e.plugins-basic-test
|
||||
(:require
|
||||
[clojure.set :as set]
|
||||
[clojure.string :as string]
|
||||
[clojure.test :refer [deftest testing is use-fixtures]]
|
||||
[jsonista.core :as json]
|
||||
@@ -319,7 +320,7 @@
|
||||
":logseq.class/Card"
|
||||
":logseq.class/Quote-block"
|
||||
":logseq.class/Cards"}]
|
||||
(is (= (set (map #(get % "ident") result)) built-in-tags)))))
|
||||
(is (set/subset? built-in-tags (set (map #(get % "ident") result)))))))
|
||||
|
||||
(deftest get-all-properties-test
|
||||
(testing "get_all_properties"
|
||||
@@ -331,7 +332,6 @@
|
||||
(let [page "tag objects test"
|
||||
_ (page/new-page page)
|
||||
_ (ls-api-call! :editor.insertBlock page "task 1"
|
||||
;; FIXME: "Doing" doesn't work here
|
||||
{:properties {"logseq.property/status" "Doing"}})
|
||||
result (ls-api-call! :editor.get_tag_objects "logseq.class/Task")]
|
||||
(is (= (count result) 1))
|
||||
|
||||
Reference in New Issue
Block a user