Auto style when adding to empty maps/arrays

This commit is contained in:
Mike Farah
2022-01-27 09:58:13 +11:00
parent 71242b0c8e
commit c3d815998a
4 changed files with 83 additions and 4 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ var collectObjectOperatorScenarios = []expressionScenario{
document: "a: []",
expression: `.a += [{"key": "att2", "value": "val2"}]`,
expected: []string{
"D0, P[], (doc)::a: [{key: att2, value: val2}]\n",
"D0, P[], (doc)::a:\n - key: att2\n value: val2\n",
},
},
{