Skip to content

Commit

Permalink
Test other shell init scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
canac committed Mar 22, 2024
1 parent cc1ebb3 commit 59b4580
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -584,6 +584,14 @@ mod tests {
);
}

#[test]
fn test_config_init_bash() {
let mocked_deps = Unimock::new(args_mock("portman init bash"));

let output = run_and_suggest(&mocked_deps).1;
assert!(!output.is_empty());
}

#[test]
fn test_config_init_fish() {
let mocked_deps = Unimock::new(args_mock("portman init fish"));
Expand All @@ -592,6 +600,14 @@ mod tests {
assert!(!output.is_empty());
}

#[test]
fn test_config_init_zsh() {
let mocked_deps = Unimock::new(args_mock("portman init zsh"));

let output = run_and_suggest(&mocked_deps).1;
assert!(!output.is_empty());
}

#[test]
fn test_config_edit() {
let mocked_deps = Unimock::new((
Expand Down

0 comments on commit 59b4580

Please sign in to comment.