abra/tests/integration/autocomplete.bats

31 lines
605 B
Plaintext
Raw Normal View History

2023-09-05 11:03:38 +00:00
#!/usr/bin/env bash
2023-09-07 16:50:25 +00:00
setup(){
load "$PWD/tests/integration/helpers/common"
_common_setup
2023-09-05 11:03:38 +00:00
}
@test "bash autocompletion" {
run $ABRA autocomplete bash
assert_success
2023-09-07 16:50:25 +00:00
assert_exists "$ABRA_DIR/autocompletion/bash"
2023-09-05 11:03:38 +00:00
}
@test "zsh autocompletion" {
run $ABRA autocomplete zsh
assert_success
2023-09-07 16:50:25 +00:00
assert_exists "$ABRA_DIR/autocompletion/zsh"
2023-09-05 11:03:38 +00:00
}
@test "fish autocompletion" {
run $ABRA autocomplete fish
assert_success
2023-09-07 16:50:25 +00:00
assert_exists "$ABRA_DIR/autocompletion/fish"
2023-09-05 11:03:38 +00:00
}
@test "fizsh autocompletion" {
run $ABRA autocomplete fizsh
assert_success
2023-09-07 16:50:25 +00:00
assert_exists "$ABRA_DIR/autocompletion/zsh"
2023-09-05 11:03:38 +00:00
}