1
0
Fork 0

Excplicitly load ‘oni-ivy’ for testing

This commit is contained in:
Tom Willemse 2020-04-09 00:06:37 -07:00
parent ed1af74205
commit 89d2b9a057

View file

@ -1,7 +1,8 @@
#!/usr/bin/env bats #!/usr/bin/env bats
@test "Opening emacs loads oni-ivy" { @test "Loading ivy loads oni-ivy" {
run emacs -batch -l package -f package-initialize \ run emacs -batch -l package -f package-initialize \
-l ivy \
-eval "(prin1 (featurep 'oni-ivy))" -eval "(prin1 (featurep 'oni-ivy))"
echo "$output" echo "$output"
@ -9,8 +10,9 @@
[[ "$output" == *"t" ]] [[ "$output" == *"t" ]]
} }
@test "Opening emacs diminishes ivy-mode" { @test "Loading ivy diminishes ivy-mode" {
run emacs -batch -l package -f package-initialize -l subr-x \ run emacs -batch -l package -f package-initialize -l subr-x \
-l ivy \
-eval "(prin1 (string-empty-p (car (alist-get 'ivy-mode minor-mode-alist))))" -eval "(prin1 (string-empty-p (car (alist-get 'ivy-mode minor-mode-alist))))"
echo "$output" echo "$output"
@ -20,6 +22,7 @@
@test "Reloading ivy diminishes ivy-mode" { @test "Reloading ivy diminishes ivy-mode" {
run emacs -batch -l package -f package-initialize -l subr-x \ run emacs -batch -l package -f package-initialize -l subr-x \
-l ivy \
-eval "(load-library \"ivy\")" \ -eval "(load-library \"ivy\")" \
-eval "(prin1 (string-empty-p (car (alist-get 'ivy-mode minor-mode-alist))))" -eval "(prin1 (string-empty-p (car (alist-get 'ivy-mode minor-mode-alist))))"
@ -28,8 +31,9 @@
[[ "$output" == *"t" ]] [[ "$output" == *"t" ]]
} }
@test "Opening emacs diminishes ivy-posframe-mode" { @test "Loading ivy-posframe diminishes ivy-posframe-mode" {
run emacs -batch -l package -f package-initialize -l subr-x \ run emacs -batch -l package -f package-initialize -l subr-x \
-l ivy-posframe \
-eval "(prin1 (string-empty-p (car (alist-get 'ivy-posframe-mode minor-mode-alist))))" -eval "(prin1 (string-empty-p (car (alist-get 'ivy-posframe-mode minor-mode-alist))))"
echo "$output" echo "$output"
@ -39,6 +43,7 @@
@test "Reloading ivy-posframe diminishes ivy-posframe-mode" { @test "Reloading ivy-posframe diminishes ivy-posframe-mode" {
run emacs -batch -l package -f package-initialize -l subr-x \ run emacs -batch -l package -f package-initialize -l subr-x \
-l ivy-posframe \
-eval "(load-library \"ivy-posframe\")" \ -eval "(load-library \"ivy-posframe\")" \
-eval "(prin1 (string-empty-p (car (alist-get 'ivy-posframe-mode minor-mode-alist))))" -eval "(prin1 (string-empty-p (car (alist-get 'ivy-posframe-mode minor-mode-alist))))"