mirror of
https://github.com/logseq/logseq.git
synced 2026-06-01 19:01:22 +00:00
fix: remove-properties!
This commit is contained in:
@@ -110,17 +110,17 @@
|
||||
[]
|
||||
(testing "properties with non-blank lines"
|
||||
(are [x y] (= x y)
|
||||
(text/remove-properties! "** hello\n:PROPERTIES:\n:x: y\n:END:\n")
|
||||
(text/remove-properties! :org "** hello\n:PROPERTIES:\n:x: y\n:END:\n")
|
||||
"** hello"
|
||||
|
||||
(text/remove-properties! "** hello\n:PROPERTIES:\n:x: y\na:b\n:END:\n")
|
||||
(text/remove-properties! :org "** hello\n:PROPERTIES:\n:x: y\na:b\n:END:\n")
|
||||
"** hello"))
|
||||
(testing "properties with blank lines"
|
||||
(are [x y] (= x y)
|
||||
(text/remove-properties! "** hello\n:PROPERTIES:\n\n:x: y\n:END:\n")
|
||||
(text/remove-properties! :org "** hello\n:PROPERTIES:\n\n:x: y\n:END:\n")
|
||||
"** hello"
|
||||
|
||||
(text/remove-properties! "** hello\n:PROPERTIES:\n:x: y\n\na:b\n:END:\n")
|
||||
(text/remove-properties! :org "** hello\n:PROPERTIES:\n:x: y\n\na:b\n:END:\n")
|
||||
"** hello")))
|
||||
|
||||
(defn test-insert-property
|
||||
|
||||
Reference in New Issue
Block a user