mirror of
https://github.com/mikefarah/yq.git
synced 2026-09-01 14:14:52 +08:00
Fixed to_entries and del bug #1886
This commit is contained in:
@@ -5,6 +5,15 @@ import (
|
||||
)
|
||||
|
||||
var entriesOperatorScenarios = []expressionScenario{
|
||||
{
|
||||
description: "to_entries, delete key",
|
||||
skipDoc: true,
|
||||
document: `{a: 1, b: 2}`,
|
||||
expression: `to_entries | map(del(.key))`,
|
||||
expected: []string{
|
||||
"D0, P[], (!!seq)::- value: 1\n- value: 2\n",
|
||||
},
|
||||
},
|
||||
{
|
||||
description: "to_entries Map",
|
||||
document: `{a: 1, b: 2}`,
|
||||
|
||||
Reference in New Issue
Block a user