mirror of https://github.com/logseq/logseq
fix: graph parser CI
parent
58839059ac
commit
79af14d75e
|
@ -501,7 +501,7 @@
|
|||
ast)
|
||||
(mapv macro->block @*result)))
|
||||
|
||||
(defn- with-pre-block-if-exists
|
||||
(defn with-pre-block-if-exists
|
||||
[blocks body pre-block-properties encoded-content {:keys [supported-formats db date-formatter user-config]}]
|
||||
(let [first-block (first blocks)
|
||||
first-block-start-pos (get-in first-block [:block/meta :start_pos])
|
||||
|
|
|
@ -150,8 +150,8 @@ body"
|
|||
"Hiccup" 15,
|
||||
"List" 37,
|
||||
"Paragraph" 417,
|
||||
"Properties" 104,
|
||||
"Property_Drawer" 188,
|
||||
"Properties" 91,
|
||||
"Property_Drawer" 201,
|
||||
"Quote" 9,
|
||||
"Raw_Html" 12,
|
||||
"Src" 56,
|
||||
|
|
|
@ -124,11 +124,11 @@
|
|||
|
||||
(is (= {:block/alias [{:block/name "233"}]
|
||||
:block/tags [{:block/name "fun"} {:block/name "facts"}]
|
||||
:block/properties {:alias ["233"] :tags ["fun" "facts"]}}
|
||||
:block/properties {:alias #{"233"} :tags #{"fun" "facts"}}}
|
||||
block))
|
||||
|
||||
(is (every? vector? (vals (:block/properties block)))
|
||||
"Linked built-in property values as vectors provides for easier transforms"))))
|
||||
(is (every? set? (vals (:block/properties block)))
|
||||
"Linked built-in property values as sets provides for easier transforms"))))
|
||||
|
||||
(defn- property-relationships-test
|
||||
"Runs tests on page properties and block properties. file-properties is what is
|
||||
|
@ -191,8 +191,8 @@
|
|||
properties
|
||||
{:single-link #{"bar"}
|
||||
:multi-link #{"Logseq" "triples" "text editor"}
|
||||
:desc #{"This is a multiple sentence description. It has one" "link"}
|
||||
:comma-prop #{"one" "two" "three"}}
|
||||
:desc #{"link"}
|
||||
:comma-prop "one, two,three"}
|
||||
{}))))
|
||||
|
||||
(deftest invalid-properties
|
||||
|
|
Loading…
Reference in New Issue