mirror of
https://github.com/mikefarah/yq.git
synced 2025-03-15 16:37:46 +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) {
|
func TestWrite_add_to_array(t *testing.T) {
|
||||||
var data = parseData(`
|
var data = parseData(`
|
||||||
b:
|
b:
|
||||||
- aa
|
- aa
|
||||||
`)
|
`)
|
||||||
|
|
||||||
var expected = `b:
|
var expected = `b:
|
||||||
- aa
|
- aa
|
||||||
- bb`
|
- 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) {
|
func TestWrite_with_no_tail(t *testing.T) {
|
||||||
|
Loading…
Reference in New Issue
Block a user