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

22 lines
512 B
Text
Raw Permalink Normal View History

2020-01-13 00:34:34 +01:00
#!/usr/bin/env bats
@test "Opening a .conf file loads oni-conf" {
run emacs -batch -l package -f package-initialize \
-visit test.conf \
-eval "(prin1 (featurep 'oni-conf))"
echo "$output"
[[ "$output" == *"t" ]]
}
@test "Opening a .service file enables conf-mode" {
run emacs -batch -l package -f package-initialize \
-visit test.service \
-eval "(prin1 (not (null (derived-mode-p major-mode 'conf-mode))))"
echo "$output"
[[ "$output" == *"t" ]]
2020-01-13 00:34:34 +01:00
}