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

pull/1626/head
Noah Gorny 2020-07-17 16:40:11 +03:00
parent 2fd1cd66e4
commit fc17169b1c
1 changed files with 5 additions and 0 deletions

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 ""