mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 19:17:44 +02:00
Add initial test
This commit is contained in:
15
crates/nu-cli/tests/commands/headers.rs
Normal file
15
crates/nu-cli/tests/commands/headers.rs
Normal file
@ -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")
|
||||
}
|
Reference in New Issue
Block a user