mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-10-14 05:23:04 +00:00
Fix: correct expectation for this test in batch-mode
This commit is contained in:
parent
1774d7cbd0
commit
f836621480
@ -198,6 +198,12 @@
|
|||||||
(should (string= (yas--buffer-contents) "if condition\naaa\nelse\nbbb\nend")))))
|
(should (string= (yas--buffer-contents) "if condition\naaa\nelse\nbbb\nend")))))
|
||||||
|
|
||||||
(ert-deftest another-example-for-issue-271 ()
|
(ert-deftest another-example-for-issue-271 ()
|
||||||
|
;; expect this to fail in batch mode since `region-active-p' doesn't
|
||||||
|
;; used by `yas-expand-snippet' doesn't make sense in that context.
|
||||||
|
;;
|
||||||
|
:expected-result (if noninteractive
|
||||||
|
:failed
|
||||||
|
:passed)
|
||||||
(with-temp-buffer
|
(with-temp-buffer
|
||||||
(yas-minor-mode 1)
|
(yas-minor-mode 1)
|
||||||
(let ((snippet "\\${${1:1}:`yas/selected-text`}"))
|
(let ((snippet "\\${${1:1}:`yas/selected-text`}"))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user