From fc17169b1cf423e5e6dac729e919004ab254daf6 Mon Sep 17 00:00:00 2001 From: Noah Gorny Date: Fri, 17 Jul 2020 16:40:11 +0300 Subject: [PATCH] test: Add completion test for -s --silent flag --- test/completion/bash-it.completion.bats | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/completion/bash-it.completion.bats b/test/completion/bash-it.completion.bats index 44eefc75..902c4b42 100644 --- a/test/completion/bash-it.completion.bats +++ b/test/completion/bash-it.completion.bats @@ -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 ""