diff --git a/pkg/yqlib/operator_collect_object_test.go b/pkg/yqlib/operator_collect_object_test.go index 95463934..fcc399d0 100644 --- a/pkg/yqlib/operator_collect_object_test.go +++ b/pkg/yqlib/operator_collect_object_test.go @@ -54,6 +54,16 @@ var collectObjectOperatorScenarios = []expressionScenario{ "D0, P[], (!!map)::wrap: {name: Mike}\n", }, }, + { + skipDoc: true, + document: "{name: Mike}\n", + document2: "{name: Bob}\n", + expression: `{"wrap": .}`, + expected: []string{ + "D0, P[], (!!map)::wrap: {name: Mike}\n", + "D0, P[], (!!map)::wrap: {name: Bob}\n", + }, + }, { skipDoc: true, document: "{name: Mike}\n---\n{name: Bob}",