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

30 lines
775 B
Text
Raw Normal View History

#!/usr/bin/env bats
@test "Opening Emacs loads oni-yasnippet" {
run emacs -batch -l package -f package-initialize \
-eval "(prin1 (featurep 'oni-yasnippet))"
echo "$output"
[[ "$output" == *"t" ]]
}
@test "Opening Emacs diminishes yas-minor-mode" {
run emacs -batch -l package -f package-initialize \
-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 \
-eval "(load-library \"yasnippet\")" \
-eval "(prin1 (string-empty-p (car (alist-get 'yas-minor-mode minor-mode-alist))))"
echo "$output"
[[ "$output" == *"t" ]]
}