mirror of
https://github.com/lsd-rs/lsd.git
synced 2026-04-09 21:32:14 +02:00
Fix symlink_arrow test intercepting cli args
This commit is contained in:
@@ -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))
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user