formatting

This commit is contained in:
Mike Farah 2017-04-18 09:14:06 +10:00
parent 909b62be54
commit 08ba0083be

View File

@ -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) {