diff --git a/util/jsonpath/jsonpath_test.go b/util/jsonpath/jsonpath_test.go index c7714ee8..197e73e8 100644 --- a/util/jsonpath/jsonpath_test.go +++ b/util/jsonpath/jsonpath_test.go @@ -280,6 +280,7 @@ func TestStructInput(t *testing.T) { missingKeyTests := []jsonpathTest{ {"nonexistent field", "{.hello}", storeData, "", false}, + {"nonexistent field 2", "before-{.hello}after", storeData, "before-after", false}, } testJSONPath(missingKeyTests, true, t)