test: Add completion test for -s --silent flag

This commit is contained in:
Noah Gorny
2020-07-17 16:40:11 +03:00
parent 2fd1cd66e4
commit fc17169b1c

View File

@@ -63,6 +63,11 @@ function __check_completion () {
assert_line -n 0 "stable dev"
}
@test "completion bash-it: update - show optional flags" {
run __check_completion 'bash-it update -'
assert_line -n 0 "-s --silent"
}
@test "completion bash-it: search - show no options" {
run __check_completion 'bash-it search '
assert_line -n 0 ""