mirror of
https://github.com/nushell/nushell
synced 2024-12-29 06:23:11 +00:00
14 lines
231 B
Rust
14 lines
231 B
Rust
|
use nu_test_support::{nu, pipeline};
|
||
|
|
||
|
#[test]
|
||
|
fn capture_errors_works() {
|
||
|
let actual = nu!(
|
||
|
cwd: ".", pipeline(
|
||
|
r#"
|
||
|
do -c {$env.use} | describe
|
||
|
"#
|
||
|
));
|
||
|
|
||
|
assert_eq!(actual.out, "error");
|
||
|
}
|