mirror of
https://github.com/nushell/nushell.git
synced 2024-12-28 09:59:36 +01:00
96e5fc05a3
Pick->Select rename. Integration tests changes.
26 lines
429 B
Rust
26 lines
429 B
Rust
use nu_test_support::{nu, pipeline};
|
|
|
|
#[test]
|
|
fn out_md_simple() {
|
|
let actual = nu!(
|
|
cwd: ".", pipeline(
|
|
r#"
|
|
echo 3 | to md
|
|
"#
|
|
));
|
|
|
|
assert_eq!(actual.out, "3");
|
|
}
|
|
|
|
#[test]
|
|
fn out_md_table() {
|
|
let actual = nu!(
|
|
cwd: ".", pipeline(
|
|
r#"
|
|
echo '{"name": "jason"}' | from json | to md
|
|
"#
|
|
));
|
|
|
|
assert_eq!(actual.out, "|name||-||jason|");
|
|
}
|