From 9a1cedfd08adff8a8e8624d8433d5966b3ba8020 Mon Sep 17 00:00:00 2001 From: Dan Davison Date: Sun, 6 Nov 2022 12:09:56 -0500 Subject: [PATCH] Add expected result to test (#7031) --- crates/nu-command/src/date/format.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/nu-command/src/date/format.rs b/crates/nu-command/src/date/format.rs index 5b9e5ef944..c7032f9f70 100644 --- a/crates/nu-command/src/date/format.rs +++ b/crates/nu-command/src/date/format.rs @@ -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(), + }), }, ] }