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