blob: aa1cc88d770f537b73151e07cd4f06bdc1fde7d2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#!/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 (derived-mode-p major-mode 'conf-mode))"
echo "$output"
[[ "$output" == *"t" ]]
}
|