mirror of
https://github.com/esp-rs/espup.git
synced 2025-09-27 04:40:27 +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"))),
|
||||
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