Tests: Add a couple of asserts
Not absolutely needed now, but they might help in the future if something changes again.
This commit is contained in:
parent
12b3b426b5
commit
9396385fed
1 changed files with 4 additions and 0 deletions
|
|
@ -1432,11 +1432,15 @@ RESULTS should be a list of strings as returned by
|
|||
:super-groups super-groups
|
||||
:sort sort :title title :buffer view-buffer)
|
||||
(with-current-buffer view-buffer
|
||||
(cl-assert (member '("org-ql-search" :follow org-ql-view--link-open :store org-ql-view--link-store)
|
||||
org-link-parameters)
|
||||
t)
|
||||
(with-simulated-input input
|
||||
;; Avoid writing "Stored: ..." to test output.
|
||||
(let ((inhibit-message t))
|
||||
(call-interactively #'org-store-link nil)))
|
||||
(kill-buffer))
|
||||
(cl-assert (and org-stored-links (caar org-stored-links)) t)
|
||||
(open-link-in (caar org-stored-links) buffer)
|
||||
(with-current-buffer (get-buffer (concat "*Org QL View: " title "*"))
|
||||
(prog1 (buffer-local-value var (current-buffer))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue