test(complete): Only limit by command when needed

This commit is contained in:
Ed Page 2023-07-28 12:52:44 -05:00
parent fa95531230
commit dac33b686b
4 changed files with 0 additions and 16 deletions

View file

@ -141,10 +141,6 @@ fn subcommand_last() {
#[test]
#[cfg(unix)]
fn register_completion() {
if !common::has_command("bash") {
return;
}
common::register_example("static", "test", completest::Shell::Bash);
}

View file

@ -123,10 +123,6 @@ fn subcommand_last() {
#[test]
#[cfg(unix)]
fn register_completion() {
if !common::has_command("elvish") {
return;
}
common::register_example("static", "test", completest::Shell::Elvish);
}

View file

@ -123,10 +123,6 @@ fn subcommand_last() {
#[test]
#[cfg(unix)]
fn register_completion() {
if !common::has_command("fish") {
return;
}
common::register_example("static", "test", completest::Shell::Fish);
}

View file

@ -123,10 +123,6 @@ fn subcommand_last() {
#[test]
#[cfg(unix)]
fn register_completion() {
if !common::has_command("zsh") {
return;
}
common::register_example("static", "test", completest::Shell::Zsh);
}