Fix labels item test
@@ -76,10 +76,25 @@ func TestLabelsItem(t *testing.T) {
"b": "content",
},
expected: Item{
+ Type: "labels",
+ Label: "name",
+ Data: map[string]interface{}{
+ "items": []Item{
+ Item{
+ Type: "text",
+ Label: "name",
+ Data: map[string]interface{}{
+ "value": "b=content",
+ },
+ },
+ Item{
Type: "text",
Label: "name",
Data: map[string]interface{}{
- "value": "b=content, z=content",
+ "value": "z=content",
+ },
+ },
+ },
},
},
},
