mirror of
https://github.com/nushell/nushell.git
synced 2024-12-23 23:49:44 +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 {
|
||||
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""#,
|
||||
result: None,
|
||||
result: Some(Value::String {
|
||||
val: "2021-10-22".to_string(),
|
||||
span: Span::test_data(),
|
||||
}),
|
||||
},
|
||||
]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user