1
0
Fork 0

Explicitly load yasnippet for testing

This commit is contained in:
Tom Willemse 2020-04-09 00:08:42 -07:00
parent 89d2b9a057
commit 8a494dc120

View file

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