mirror of
https://github.com/nushell/nushell.git
synced 2025-06-30 14:40:06 +02:00
Suggest alternative when command not found (#6256)
* Suggest alternative when command not found * Add tests for command-not-found suggestions * Put suggestion in label * Fix tests
This commit is contained in:
@ -65,5 +65,5 @@ fn checks_if_all_returns_error_with_invalid_command() {
|
||||
"#
|
||||
));
|
||||
|
||||
assert!(actual.err.contains("can't run executable") || actual.err.contains("type_mismatch"));
|
||||
assert!(actual.err.contains("can't run executable") || actual.err.contains("did you mean"));
|
||||
}
|
||||
|
@ -41,5 +41,5 @@ fn checks_if_any_returns_error_with_invalid_command() {
|
||||
"#
|
||||
));
|
||||
|
||||
assert!(actual.err.contains("can't run executable") || actual.err.contains("type_mismatch"));
|
||||
assert!(actual.err.contains("can't run executable") || actual.err.contains("did you mean"));
|
||||
}
|
||||
|
Reference in New Issue
Block a user