diff --git a/crates/nu-command/tests/commands/help.rs b/crates/nu-command/tests/commands/help.rs index cad6aeab2f..32e01c1c0f 100644 --- a/crates/nu-command/tests/commands/help.rs +++ b/crates/nu-command/tests/commands/help.rs @@ -380,3 +380,14 @@ fn help_alias_before_command() { assert!(actual.out.contains("Alias")); } + +#[test] +fn nothing_type_annotation() { + let actual = nu!(pipeline( + " + def foo []: nothing -> nothing {}; + help commands | where name == foo | get input_output.0.output.0 + " + )); + assert_eq!(actual.out, "nothing"); +}