28 lines
702 B
Bash
28 lines
702 B
Bash
#!/usr/bin/env bats
|
|
|
|
@test "Opening emacs loads oni-core" {
|
|
run emacs -batch -l package -f package-initialize \
|
|
-eval "(prin1 (featurep 'oni-core))"
|
|
|
|
echo "$output"
|
|
|
|
[[ "$output" == *"t" ]]
|
|
}
|
|
|
|
@test "C-a is bound to oni-core-move-to-beginning-of-dwim" {
|
|
run emacs -batch -l package -f package-initialize \
|
|
-eval "(prin1 (key-binding (kbd \"C-a\")))"
|
|
|
|
echo "$output"
|
|
|
|
[[ "$output" == *"oni-core-move-beginning-of-dwim" ]]
|
|
}
|
|
|
|
@test "C-e is bound to oni-core-move-to-end-of-dwim" {
|
|
run emacs -batch -l package -f package-initialize \
|
|
-eval "(prin1 (key-binding (kbd \"C-e\")))"
|
|
|
|
echo "$output"
|
|
|
|
[[ "$output" == *"oni-core-move-end-of-dwim" ]]
|
|
}
|