1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
use nu_test_support::{nu, pipeline}; #[test] fn export_subcommands_help() { let actual = nu!( cwd: ".", pipeline( r#" export def -h "# )); assert!(actual .out .contains("Define a custom command and export it from a module")); }