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