Fixed create yaml

This commit is contained in:
Mike Farah
2020-12-01 14:06:49 +11:00
parent c9229439f7
commit 08f579f4e3
6 changed files with 60 additions and 5 deletions
+7
View File
@@ -5,6 +5,13 @@ import (
)
var assignOperatorScenarios = []expressionScenario{
{
description: "Create yaml file",
expression: `(.a.b = "cat") | (.x = "frog")`,
expected: []string{
"D0, P[], ()::a:\n b: cat\nx: frog\n",
},
},
{
description: "Update node to be the child value",
document: `{a: {b: {g: foof}}}`,