test: 🧪 Add a test case: Export file path is a directory

This commit is contained in:
Sergio Gasquez 2022-12-30 10:25:43 +01:00
parent 87863fe8f8
commit 1a21ef9593

View File

@ -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());
}
}