diff --git a/path_value_test.go b/path_value_test.go index 389360ea..5a48698b 100644 --- a/path_value_test.go +++ b/path_value_test.go @@ -35,6 +35,14 @@ func TestPathValue(t *testing.T) { requestPath: "/users/Gojo/conversations/2948", expectedBody: "Gojo 2948", }, + { + name: "Wildcard path", + pattern: "/users/{userID}/friends/*", + method: "POST", + pathKeys: []string{"userID", "*"}, + requestPath: "/users/Gojo/friends/all-of-them/and/more", + expectedBody: "Gojo all-of-them/and/more", + }, } for _, tc := range testCases {