mirror of
https://github.com/mikefarah/yq.git
synced 2024-12-19 20:19:04 +00:00
formatting
This commit is contained in:
parent
909b62be54
commit
08ba0083be
@ -206,18 +206,18 @@ b:
|
||||
}
|
||||
|
||||
func TestWrite_add_to_array(t *testing.T) {
|
||||
var data = parseData(`
|
||||
var data = parseData(`
|
||||
b:
|
||||
- aa
|
||||
`)
|
||||
|
||||
var expected = `b:
|
||||
var expected = `b:
|
||||
- aa
|
||||
- bb`
|
||||
|
||||
updated := writeMap(data, []string{"b", "1"}, "bb")
|
||||
updated := writeMap(data, []string{"b", "1"}, "bb")
|
||||
|
||||
assertResult(t, expected, yamlToString(updated))
|
||||
assertResult(t, expected, yamlToString(updated))
|
||||
}
|
||||
|
||||
func TestWrite_with_no_tail(t *testing.T) {
|
||||
|
Loading…
Reference in New Issue
Block a user