nushell/crates/nu-cli/tests/commands/headers.rs
2020-03-28 19:38:19 +01:00

16 lines
321 B
Rust

use nu_test_support::{nu, pipeline};
#[test]
fn headers() {
let actual = nu!(
cwd: "tests/fixtures/formats", pipeline(
r#"
open sample_headers.xlsx
| get Sheet1
| headers
| get Column1
| from-json"#
));
assert_eq!(actual, "r1c1r2c1")
}