forked from extern/nushell
Cover failure not found files cases.
This commit is contained in:
parent
5b701cd197
commit
a317072e4e
@ -73,3 +73,16 @@ fn knows_the_filesystems_entered() {
|
||||
));
|
||||
})
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn errors_if_file_not_found() {
|
||||
Playground::setup("enter_test_2", |dirs, _| {
|
||||
let actual = nu_error!(
|
||||
cwd: dirs.test(),
|
||||
"enter i_dont_exist.csv"
|
||||
);
|
||||
|
||||
assert!(actual.contains("File could not be opened"));
|
||||
assert!(actual.contains("file not found"));
|
||||
})
|
||||
}
|
||||
|
@ -226,4 +226,5 @@ fn errors_if_file_not_found() {
|
||||
);
|
||||
|
||||
assert!(actual.contains("File could not be opened"));
|
||||
assert!(actual.contains("file not found"));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user