2020-04-08 20:16:00 +02:00
|
|
|
#!/usr/bin/env bats
|
|
|
|
|
2020-04-09 09:06:37 +02:00
|
|
|
@test "Loading ivy loads oni-ivy" {
|
2020-04-08 20:16:00 +02:00
|
|
|
run emacs -batch -l package -f package-initialize \
|
2020-04-09 09:06:37 +02:00
|
|
|
-l ivy \
|
2020-04-08 20:16:00 +02:00
|
|
|
-eval "(prin1 (featurep 'oni-ivy))"
|
|
|
|
|
|
|
|
echo "$output"
|
|
|
|
|
|
|
|
[[ "$output" == *"t" ]]
|
|
|
|
}
|
|
|
|
|
2020-04-09 09:06:37 +02:00
|
|
|
@test "Loading ivy diminishes ivy-mode" {
|
2020-04-09 08:51:59 +02:00
|
|
|
run emacs -batch -l package -f package-initialize -l subr-x \
|
2020-04-09 09:06:37 +02:00
|
|
|
-l ivy \
|
2020-04-08 20:16:00 +02:00
|
|
|
-eval "(prin1 (string-empty-p (car (alist-get 'ivy-mode minor-mode-alist))))"
|
|
|
|
|
|
|
|
echo "$output"
|
|
|
|
|
|
|
|
[[ "$output" == *"t" ]]
|
|
|
|
}
|
|
|
|
|
|
|
|
@test "Reloading ivy diminishes ivy-mode" {
|
2020-04-09 08:51:59 +02:00
|
|
|
run emacs -batch -l package -f package-initialize -l subr-x \
|
2020-04-09 09:06:37 +02:00
|
|
|
-l ivy \
|
2020-04-08 20:16:00 +02:00
|
|
|
-eval "(load-library \"ivy\")" \
|
|
|
|
-eval "(prin1 (string-empty-p (car (alist-get 'ivy-mode minor-mode-alist))))"
|
|
|
|
|
|
|
|
echo "$output"
|
|
|
|
|
|
|
|
[[ "$output" == *"t" ]]
|
|
|
|
}
|
|
|
|
|
2020-04-09 09:06:37 +02:00
|
|
|
@test "Loading ivy-posframe diminishes ivy-posframe-mode" {
|
2020-04-09 08:51:59 +02:00
|
|
|
run emacs -batch -l package -f package-initialize -l subr-x \
|
2020-04-09 09:06:37 +02:00
|
|
|
-l ivy-posframe \
|
2020-04-08 20:16:00 +02:00
|
|
|
-eval "(prin1 (string-empty-p (car (alist-get 'ivy-posframe-mode minor-mode-alist))))"
|
|
|
|
|
|
|
|
echo "$output"
|
|
|
|
|
|
|
|
[[ "$output" == *"t" ]]
|
|
|
|
}
|
|
|
|
|
|
|
|
@test "Reloading ivy-posframe diminishes ivy-posframe-mode" {
|
2020-04-09 08:51:59 +02:00
|
|
|
run emacs -batch -l package -f package-initialize -l subr-x \
|
2020-04-09 09:06:37 +02:00
|
|
|
-l ivy-posframe \
|
2020-04-08 20:16:00 +02:00
|
|
|
-eval "(load-library \"ivy-posframe\")" \
|
|
|
|
-eval "(prin1 (string-empty-p (car (alist-get 'ivy-posframe-mode minor-mode-alist))))"
|
|
|
|
|
|
|
|
echo "$output"
|
|
|
|
|
|
|
|
[[ "$output" == *"t" ]]
|
|
|
|
}
|