Fix symlink_arrow test intercepting cli args

This commit is contained in:
Marcin Puc 2022-09-14 12:07:20 +02:00 committed by Abin Simon
parent 292154358f
commit ebe7417a88

View file

@ -62,9 +62,10 @@ mod test {
#[test] #[test]
fn test_symlink_arrow_from_args_none() { fn test_symlink_arrow_from_args_none() {
use clap::App; use clap::App;
let empty_args: [String; 0] = [];
assert_eq!( assert_eq!(
None, None,
SymlinkArrow::from_arg_matches(&App::new("lsd").get_matches()) SymlinkArrow::from_arg_matches(&App::new("lsd").get_matches_from(empty_args))
); );
} }