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
This commit is contained in:
Antoine Stevan 2023-09-14 20:11:08 +02:00 committed by GitHub
parent 2c176a7f14
commit 3a04bd9154
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 },