mirror of
				https://github.com/taigrr/yq
				synced 2025-01-18 04:53:17 -08: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…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user