mirror of
https://github.com/mikefarah/yq.git
synced 2026-09-06 10:04:43 +08:00
Fixed loading yaml with header issue #1445
This commit is contained in:
@@ -13,6 +13,15 @@ var loadScenarios = []expressionScenario{
|
||||
"D0, P[], (doc)::# comment\n\n",
|
||||
},
|
||||
},
|
||||
{
|
||||
skipDoc: true,
|
||||
description: "Load file with a header comment into an array",
|
||||
document: `- "../../examples/small.yaml"`,
|
||||
expression: `.[] |= load(.)`,
|
||||
expected: []string{
|
||||
"D0, P[], (doc)::- # comment\n # about things\n a: cat\n",
|
||||
},
|
||||
},
|
||||
{
|
||||
skipDoc: true,
|
||||
description: "Load empty file with no comment",
|
||||
|
||||
Reference in New Issue
Block a user