Skip to content

Commit

Permalink
fix: add smoke test for completions
Browse files Browse the repository at this point in the history
  • Loading branch information
quixoten committed Jul 15, 2023
1 parent 85625e6 commit c57944f
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/commands/completions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,20 @@ fn shells_as_string() -> String {
.collect::<Vec<_>>()
.join("\n")
}

#[cfg(test)]
mod tests {
use super::*;

#[test]
fn test_smoke() {
let config = FnmConfig::default();
Completions {
#[cfg(windows)]
shell: Some(Shells::Cmd),
#[cfg(not(windows))]
shell: Some(Shells::Bash),
}
.call(config);
}
}

0 comments on commit c57944f

Please sign in to comment.