mirror of
https://github.com/nushell/nushell.git
synced 2025-08-14 06:28:41 +02:00
Command tests (#922)
* WIP command tests * Finish marking todo tests * update * update * Windows cd test ignoring
This commit is contained in:
17
crates/nu-command/tests/format_conversions/bson.rs
Normal file
17
crates/nu-command/tests/format_conversions/bson.rs
Normal file
@ -0,0 +1,17 @@
|
||||
#[cfg(feature = "bson")]
|
||||
#[test]
|
||||
fn table_to_bson_and_back_into_table() {
|
||||
use nu_test_support::{nu, pipeline};
|
||||
let actual = nu!(
|
||||
cwd: "tests/fixtures/formats", pipeline(
|
||||
r#"
|
||||
open sample.bson
|
||||
| to bson
|
||||
| from bson
|
||||
| get root
|
||||
| get 1.b
|
||||
"#
|
||||
));
|
||||
|
||||
assert_eq!(actual.out, "whel");
|
||||
}
|
Reference in New Issue
Block a user