Assume empty field/tag value is not useful, fix test
This commit is contained in:
parent
2e724d8d02
commit
a7fb1c280f
|
@ -222,7 +222,7 @@ func TestNoMatches(t *testing.T) {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
message: "Should emit empty string when result_key given but regex doesn't match",
|
message: "Shouldn't emit empty string when result_key given but regex doesn't match",
|
||||||
converter: converter{
|
converter: converter{
|
||||||
Key: "request",
|
Key: "request",
|
||||||
Pattern: "not_match",
|
Pattern: "not_match",
|
||||||
|
@ -230,8 +230,7 @@ func TestNoMatches(t *testing.T) {
|
||||||
ResultKey: "new_field",
|
ResultKey: "new_field",
|
||||||
},
|
},
|
||||||
expectedFields: map[string]interface{}{
|
expectedFields: map[string]interface{}{
|
||||||
"request": "/users/42/",
|
"request": "/users/42/",
|
||||||
"new_field": "",
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue