Assume empty field/tag value is not useful, fix test

This commit is contained in:
Greg Linton 2018-07-05 11:05:22 -06:00
parent 2e724d8d02
commit a7fb1c280f
1 changed files with 2 additions and 3 deletions

View File

@ -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": "",
}, },
}, },
} }