mirror of
https://github.com/logseq/logseq.git
synced 2026-05-04 19:06:21 +00:00
Remove parse catch for consistent error handling
For advanced queries we error when invalid queries are written. We should do the same for simple query. Also add a test for tag query format
This commit is contained in:
committed by
Tienson Qin
parent
e615423e6a
commit
a41dd0abfc
@@ -365,7 +365,12 @@ tags: other
|
||||
(testing "page-ref queries"
|
||||
|
||||
(is (= ["b2 [[page 2]] #tag1"]
|
||||
(map :block/content (dsl-query "[[page 2]]"))))
|
||||
(map :block/content (dsl-query "[[page 2]]")))
|
||||
"Page ref arg")
|
||||
|
||||
(is (= ["b2 [[page 2]] #tag1"]
|
||||
(map :block/content (dsl-query "#tag1")))
|
||||
"Tag arg")
|
||||
|
||||
(is (= []
|
||||
(map :block/content (dsl-query "[[blarg]]")))
|
||||
|
||||
Reference in New Issue
Block a user