Skip to content

Commit

Permalink
Fix symlink_arrow test intercepting cli args
Browse files Browse the repository at this point in the history
  • Loading branch information
tranzystorekk authored and meain committed Sep 21, 2022
1 parent 2921543 commit ebe7417
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/flags/symlink_arrow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,10 @@ mod test {
#[test]
fn test_symlink_arrow_from_args_none() {
use clap::App;
let empty_args: [String; 0] = [];
assert_eq!(
None,
SymlinkArrow::from_arg_matches(&App::new("lsd").get_matches())
SymlinkArrow::from_arg_matches(&App::new("lsd").get_matches_from(empty_args))
);
}

Expand Down

0 comments on commit ebe7417

Please sign in to comment.