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