mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 23:37:48 +02:00
Add --env and --wrapped flags to def (#10566)
This commit is contained in:
@ -129,15 +129,6 @@ fn command_not_found_error_shows_not_found_1() {
|
||||
assert!(actual.err.contains("'foo' was not found"));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn command_not_found_error_shows_not_found_2() {
|
||||
let actual = nu!(r#"
|
||||
export extern-wrapped my-foo [...rest] { foo };
|
||||
my-foo
|
||||
"#);
|
||||
assert!(actual.err.contains("did you mean"));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn command_substitution_wont_output_extra_newline() {
|
||||
let actual = nu!(r#"
|
||||
|
@ -1118,3 +1118,12 @@ fn pipe_input_to_print() {
|
||||
assert_eq!(actual.out, "foo");
|
||||
assert!(actual.err.is_empty());
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn command_not_found_error_shows_not_found_2() {
|
||||
let actual = nu!(r#"
|
||||
export def --wrapped my-foo [...rest] { foo };
|
||||
my-foo
|
||||
"#);
|
||||
assert!(actual.err.contains("did you mean"));
|
||||
}
|
||||
|
Reference in New Issue
Block a user