mirror of
https://github.com/lsd-rs/lsd
synced 2025-01-22 08:15:02 +00:00
Fix symlink_arrow test intercepting cli args
This commit is contained in:
parent
292154358f
commit
ebe7417a88
1 changed files with 2 additions and 1 deletions
|
@ -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))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue