From b7215b5dde8827f28527f52443cff81742c4be4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20=C5=BD=C3=A1dn=C3=ADk?= Date: Wed, 21 Jul 2021 02:05:58 +0300 Subject: [PATCH] Fix expected age of mockup files in example tests (#3808) --- .../nu-command/src/commands/formats/to/md.rs | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/crates/nu-command/src/commands/formats/to/md.rs b/crates/nu-command/src/commands/formats/to/md.rs index ab34e3fb15..ad302ecd57 100644 --- a/crates/nu-command/src/commands/formats/to/md.rs +++ b/crates/nu-command/src/commands/formats/to/md.rs @@ -49,8 +49,8 @@ impl WholeStreamCommand for Command { result: Some(vec![Value::from(one(r#" |name|type|chickens|modified| |-|-|-|-| - |Andres.txt|File|10|1 year ago| - |Jonathan|Dir|5|1 year ago| + |Andres.txt|File|10|2 years ago| + |Jonathan|Dir|5|2 years ago| |Darren.txt|File|20|1 year ago| |Yehuda|Dir|4|1 year ago| "#))]), @@ -59,12 +59,12 @@ impl WholeStreamCommand for Command { description: "Optionally, output a formatted markdown string", example: "ls | to md --pretty", result: Some(vec![Value::from(one(r#" - | name | type | chickens | modified | - | ---------- | ---- | -------- | ---------- | - | Andres.txt | File | 10 | 1 year ago | - | Jonathan | Dir | 5 | 1 year ago | - | Darren.txt | File | 20 | 1 year ago | - | Yehuda | Dir | 4 | 1 year ago | + | name | type | chickens | modified | + | ---------- | ---- | -------- | ----------- | + | Andres.txt | File | 10 | 2 years ago | + | Jonathan | Dir | 5 | 2 years ago | + | Darren.txt | File | 20 | 1 year ago | + | Yehuda | Dir | 4 | 1 year ago | "#))]), }, Example { @@ -72,10 +72,10 @@ impl WholeStreamCommand for Command { example: "echo [[H1]; [\"Welcome to Nushell\"]] | append (ls | first 2) | to md --per-element --pretty", result: Some(vec![Value::from(one(r#" # Welcome to Nushell - | name | type | chickens | modified | - | ---------- | ---- | -------- | ---------- | - | Andres.txt | File | 10 | 1 year ago | - | Jonathan | Dir | 5 | 1 year ago | + | name | type | chickens | modified | + | ---------- | ---- | -------- | ----------- | + | Andres.txt | File | 10 | 2 years ago | + | Jonathan | Dir | 5 | 2 years ago | "#))]), } ]