aboutsummaryrefslogtreecommitdiffstats
path: root/test/integration/oni-core.bats
blob: 7e52d86c879d95a84c2e1f3d7d787ce2998100fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/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" ]]
}