mirror of
https://github.com/nushell/nushell.git
synced 2024-11-30 04:14:17 +01:00
16 lines
290 B
Rust
16 lines
290 B
Rust
|
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"));
|
||
|
}
|