mirror of
https://github.com/nushell/nushell.git
synced 2024-12-24 16:09:11 +01:00
Add expected result to test (#7031)
This commit is contained in:
parent
766d1ef374
commit
9a1cedfd08
@ -87,7 +87,10 @@ impl Command for SubCommand {
|
|||||||
Example {
|
Example {
|
||||||
description: "Format a given date using a given format string.",
|
description: "Format a given date using a given format string.",
|
||||||
example: r#""2021-10-22 20:00:12 +01:00" | date format "%Y-%m-%d""#,
|
example: r#""2021-10-22 20:00:12 +01:00" | date format "%Y-%m-%d""#,
|
||||||
result: None,
|
result: Some(Value::String {
|
||||||
|
val: "2021-10-22".to_string(),
|
||||||
|
span: Span::test_data(),
|
||||||
|
}),
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user