From 3a04bd9154fbde1066a9e30eb6b66fa1d7556bc2 Mon Sep 17 00:00:00 2001 From: Antoine Stevan <44101798+amtoine@users.noreply.github.com> Date: Thu, 14 Sep 2023 20:11:08 +0200 Subject: [PATCH] fix the pretty printing of failing tests in std (#10373) related to - https://github.com/nushell/nushell/pull/10293/files#diff-371ea1a6b13ef0f2f10ddd0b23b86c54eb8221892e45c2e4c1913a233c585ae7R137 # Description looks to me like https://github.com/nushell/nushell/pull/10293 introduced the use of `map` command in `std testing`, but it's not a valid Nushell command, right? this PR uses `each` as a replacement, that's what the error even says --- crates/nu-std/std/testing.nu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/nu-std/std/testing.nu b/crates/nu-std/std/testing.nu index 24e3dffb1..9a39e36a7 100644 --- a/crates/nu-std/std/testing.nu +++ b/crates/nu-std/std/testing.nu @@ -134,7 +134,7 @@ def show-pretty-test [indent: int = 4] { let test = $in [ - (1..$indent | map {" "} | str join) + (1..$indent | each {" "} | str join) (match $test.result { "pass" => { ansi green }, "skip" => { ansi yellow },