Explicitly load yasnippet for testing
This commit is contained in:
parent
89d2b9a057
commit
8a494dc120
1 changed files with 5 additions and 2 deletions
|
@ -1,7 +1,8 @@
|
|||
#!/usr/bin/env bats
|
||||
|
||||
@test "Opening Emacs loads oni-yasnippet" {
|
||||
@test "Loading yasnippet loads oni-yasnippet" {
|
||||
run emacs -batch -l package -f package-initialize \
|
||||
-l yasnippet \
|
||||
-eval "(prin1 (featurep 'oni-yasnippet))"
|
||||
|
||||
echo "$output"
|
||||
|
@ -9,8 +10,9 @@
|
|||
[[ "$output" == *"t" ]]
|
||||
}
|
||||
|
||||
@test "Opening Emacs diminishes yas-minor-mode" {
|
||||
@test "Loading yasnippet diminishes yas-minor-mode" {
|
||||
run emacs -batch -l package -f package-initialize -l subr-x \
|
||||
-l yasnippet \
|
||||
-eval "(prin1 (string-empty-p (car (alist-get 'yas-minor-mode minor-mode-alist))))"
|
||||
|
||||
echo "$output"
|
||||
|
@ -20,6 +22,7 @@
|
|||
|
||||
@test "Reloading yasnippet diminishes yas-minor-mode" {
|
||||
run emacs -batch -l package -f package-initialize -l subr-x \
|
||||
-l yasnippet \
|
||||
-eval "(load-library \"yasnippet\")" \
|
||||
-eval "(prin1 (string-empty-p (car (alist-get 'yas-minor-mode minor-mode-alist))))"
|
||||
|
||||
|
|
Loading…
Reference in a new issue