test: Fix completion tests and add profile completion ones
parent
4c4b138671
commit
cd38f32d95
|
|
@ -80,32 +80,42 @@ function __check_completion () {
|
||||||
|
|
||||||
@test "completion bash-it: show options" {
|
@test "completion bash-it: show options" {
|
||||||
run __check_completion 'bash-it '
|
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" {
|
@test "completion bash-it: bash-ti - show options" {
|
||||||
run __check_completion 'bash-ti '
|
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" {
|
@test "completion bash-it: shit - show options" {
|
||||||
run __check_completion 'shit '
|
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" {
|
@test "completion bash-it: bashit - show options" {
|
||||||
run __check_completion 'bashit '
|
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" {
|
@test "completion bash-it: batshit - show options" {
|
||||||
run __check_completion 'batshit '
|
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" {
|
@test "completion bash-it: bash_it - show options" {
|
||||||
run __check_completion 'bash_it '
|
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" {
|
@test "completion bash-it: show - show options" {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue