Skip to content

Commit

Permalink
test: Fix completion tests and add profile completion ones
Browse files Browse the repository at this point in the history
  • Loading branch information
Noah Gorny committed Sep 28, 2021
1 parent 4c4b138 commit cd38f32
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions test/completion/bash-it.completion.bats
Original file line number Diff line number Diff line change
Expand Up @@ -80,32 +80,42 @@ function __check_completion () {

@test "completion bash-it: show options" {
run __check_completion 'bash-it '
assert_line -n 0 "disable enable help migrate reload restart doctor search show update version"
assert_line -n 0 "disable enable help migrate reload restart profile doctor search show update version"
}

@test "completion bash-it: bash-ti - show options" {
run __check_completion 'bash-ti '
assert_line -n 0 "disable enable help migrate reload restart doctor search show update version"
assert_line -n 0 "disable enable help migrate reload restart profile doctor search show update version"
}

@test "completion bash-it: shit - show options" {
run __check_completion 'shit '
assert_line -n 0 "disable enable help migrate reload restart doctor search show update version"
assert_line -n 0 "disable enable help migrate reload restart profile doctor search show update version"
}

@test "completion bash-it: bashit - show options" {
run __check_completion 'bashit '
assert_line -n 0 "disable enable help migrate reload restart doctor search show update version"
assert_line -n 0 "disable enable help migrate reload restart profile doctor search show update version"
}

@test "completion bash-it: batshit - show options" {
run __check_completion 'batshit '
assert_line -n 0 "disable enable help migrate reload restart doctor search show update version"
assert_line -n 0 "disable enable help migrate reload restart profile doctor search show update version"
}

@test "completion bash-it: bash_it - show options" {
run __check_completion 'bash_it '
assert_line -n 0 "disable enable help migrate reload restart doctor search show update version"
assert_line -n 0 "disable enable help migrate reload restart profile doctor search show update version"
}

@test "completion bash-it: profile - show options" {
run __check_completion 'bash-it profile '
assert_line -n 0 "load save list rm"
}

@test "completion bash-it: profile load - show options" {
run __check_completion 'bash-it profile load '
assert_line -n 0 "default"
}

@test "completion bash-it: show - show options" {
Expand Down

0 comments on commit cd38f32

Please sign in to comment.