1
0
Fork 0

Load autorevert explicitly in tests

This commit is contained in:
Tom Willemse 2020-04-09 14:03:33 -07:00
parent 69aec39c5d
commit 87e28a028d

View file

@ -30,8 +30,9 @@
[[ "$output" == *"t" ]] [[ "$output" == *"t" ]]
} }
@test "Opening emacs diminishes auto-revert-mode" { @test "Loading autorevert diminishes auto-revert-mode" {
run emacs -batch -l package -f package-initialize \ run emacs -batch -l package -f package-initialize \
-l autorevert \
-eval "(prin1 (string= (string ?\s oni-gui-arev-icon) -eval "(prin1 (string= (string ?\s oni-gui-arev-icon)
(car (alist-get 'auto-revert-mode minor-mode-alist))))" (car (alist-get 'auto-revert-mode minor-mode-alist))))"
@ -42,6 +43,7 @@
@test "Reloading autorevert diminishes auto-revert-mode" { @test "Reloading autorevert diminishes auto-revert-mode" {
run emacs -batch -l package -f package-initialize \ run emacs -batch -l package -f package-initialize \
-l autorevert \
-eval "(load-library \"autorevert\")" \ -eval "(load-library \"autorevert\")" \
-eval "(prin1 (string= (string ?\s oni-gui-arev-icon) -eval "(prin1 (string= (string ?\s oni-gui-arev-icon)
(car (alist-get 'auto-revert-mode minor-mode-alist))))" (car (alist-get 'auto-revert-mode minor-mode-alist))))"