diff --git a/crates/nu-cli/tests/commands/headers.rs b/crates/nu-cli/tests/commands/headers.rs new file mode 100644 index 0000000000..2a84625171 --- /dev/null +++ b/crates/nu-cli/tests/commands/headers.rs @@ -0,0 +1,15 @@ +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") +} diff --git a/tests/fixtures/formats/sample_headers.xlsx b/tests/fixtures/formats/sample_headers.xlsx new file mode 100644 index 0000000000..f05428dd58 Binary files /dev/null and b/tests/fixtures/formats/sample_headers.xlsx differ