@@ -36,7 +36,12 @@ describe("simple matching", () => {
36
36
} ) ,
37
37
new UriSpec (
38
38
"GET" ,
39
- [ { type : "path_literal" , value : "mg" } , { type : "greedy" } , { type : "path_literal" , value : "z" } ] ,
39
+ [
40
+ { type : "path_literal" , value : "mg" } ,
41
+ { type : "greedy" } ,
42
+ { type : "path_literal" , value : "y" } ,
43
+ { type : "path_literal" , value : "z" } ,
44
+ ] ,
40
45
[ ] ,
41
46
{ service : "Test" , operation : "MiddleGreedy" }
42
47
) ,
@@ -71,8 +76,10 @@ describe("simple matching", () => {
71
76
new HttpRequest ( { method : "GET" , path : "/greedy/a/b/c/d" , query : { abc : "def" } } ) ,
72
77
] ,
73
78
"Test#MiddleGreedy" : [
74
- new HttpRequest ( { method : "GET" , path : "/mg/a/z" } ) ,
75
- new HttpRequest ( { method : "GET" , path : "/mg/a/b/c/d/z" , query : { abc : "def" } } ) ,
79
+ new HttpRequest ( { method : "GET" , path : "/mg/a/y/z" } ) ,
80
+ new HttpRequest ( { method : "GET" , path : "/mg/a/b/c/d/y/z" , query : { abc : "def" } } ) ,
81
+ new HttpRequest ( { method : "GET" , path : "/mg/a/b/y/c/d/y/z" , query : { abc : "def" } } ) ,
82
+ new HttpRequest ( { method : "GET" , path : "/mg/a/b/y/z/d/y/z" , query : { abc : "def" } } ) ,
76
83
] ,
77
84
"Test#Delete" : [
78
85
new HttpRequest ( { method : "DELETE" , path : "/" , query : { foo : "bar" , baz : "quux" } } ) ,
@@ -103,6 +110,10 @@ describe("simple matching", () => {
103
110
new HttpRequest ( { method : "GET" , path : "/mg" } ) ,
104
111
new HttpRequest ( { method : "GET" , path : "/mg/q" } ) ,
105
112
new HttpRequest ( { method : "GET" , path : "/mg/z" } ) ,
113
+ new HttpRequest ( { method : "GET" , path : "/mg/y/z" } ) ,
114
+ new HttpRequest ( { method : "GET" , path : "/mg/a/z" } ) ,
115
+ new HttpRequest ( { method : "GET" , path : "/mg/a/y/z/a" } ) ,
116
+ new HttpRequest ( { method : "GET" , path : "/mg/a/y/a" } ) ,
106
117
new HttpRequest ( { method : "GET" , path : "/mg/a/b/z/c" } ) ,
107
118
new HttpRequest ( { method : "DELETE" , path : "/" , query : { foo : "bar" } } ) ,
108
119
new HttpRequest ( { method : "DELETE" , path : "/" , query : { baz : "quux" } } ) ,
0 commit comments