1
0
Fork 0
emacs-config/test/integration/oni-yasnippet.bats

33 lines
872 B
Text
Raw Normal View History

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