mirror of
https://github.com/nushell/nushell.git
synced 2025-01-11 00:38:23 +01:00
Merge pull request #863 from andrasio/cov-enter
Cover failure not found files cases.
This commit is contained in:
commit
82b24d9beb
@ -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 could not be opened"));
|
||||||
|
assert!(actual.contains("file not found"));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user