Bubble errors even if pipeline isn't used (#2080)

This commit is contained in:
Jonathan Turner
2020-06-30 05:39:11 +12:00
committed by GitHub
parent bcddeb3c1f
commit ed10aafa6f
7 changed files with 64 additions and 37 deletions

View File

@ -10,6 +10,16 @@ fn shows_error_for_command_not_found() {
assert!(actual.err.contains("Command not found"));
}
#[test]
fn shows_error_for_command_not_found_in_pipeline() {
let actual = nu!(
cwd: ".",
"ferris_is_not_here.exe | echo done"
);
assert!(actual.err.contains("Command not found"));
}
#[test]
fn automatically_change_directory() {
use nu_test_support::playground::Playground;