mirror of
https://github.com/esp-rs/espup.git
synced 2025-09-27 12:50:54 +00:00
test: 🧪 Add a test case: Export file path is a directory
This commit is contained in:
parent
87863fe8f8
commit
1a21ef9593
@ -516,5 +516,7 @@ mod tests {
|
|||||||
get_export_file(Some(PathBuf::from("/home/user/export.sh"))),
|
get_export_file(Some(PathBuf::from("/home/user/export.sh"))),
|
||||||
Ok(export_file)
|
Ok(export_file)
|
||||||
));
|
));
|
||||||
|
// Path is a directory instead of a file
|
||||||
|
assert!(get_export_file(Some(home_dir)).is_err());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user