blob: 6deb0e8013804fb5911291021e09043a9ba63ac3 (
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 (not (null (derived-mode-p major-mode 'conf-mode))))"
echo "$output"
[[ "$output" == *"t" ]]
}
|