(fix) inconsistency between props writing and reading (alias, tags) (#1404)

Fixes #1403
This commit is contained in:
Boris Buliga
2021-01-26 05:09:19 +02:00
committed by GitHub
parent aa52b65a4a
commit 96b0a52273
4 changed files with 5 additions and 48 deletions

View File

@ -52,25 +52,6 @@
(delete-file org-roam-db-location)
(org-roam-db--close))
(describe "org-roam--str-to-list"
(it "nil"
(expect (org-roam--str-to-list nil)
:to-be
nil))
(it "\"multi word\" prop 123"
(expect (org-roam--str-to-list "\"multi word\" prop 123")
:to-equal
'("multi word" "prop" "123")))
(it "prop \"multi word\" 123"
(expect (org-roam--str-to-list "\"multi word\" prop 123")
:to-equal
'("multi word" "prop" "123")))
(it "errors on bad input"
(expect (org-roam--str-to-list 1)
:to-throw)
(expect (org-roam--str-to-list "\"hello")
:to-throw)))
(describe "Ref extraction"
(before-all
(test-org-roam--init))