@@ -45,7 +45,7 @@ test("getMatcher returns a proper matcher structure for paths with params (in pa
4545 path : [
4646 "projects" ,
4747 { name : "projectId" } ,
48- { name : "env" , union : [ "live" , "sandbox" ] } ,
48+ { name : "env" , union : new Set ( [ "live" , "sandbox" ] ) } ,
4949 ] ,
5050 search : undefined ,
5151 } ) ;
@@ -67,8 +67,8 @@ test("getMatcher returns a proper matcher structure for paths with params (in pa
6767 ranking : 16 ,
6868 path : [ "group" , { name : "groupId" } ] ,
6969 search : {
70- foo : { multiple : false , union : [ "a" , "b" ] } ,
71- bar : { multiple : true , union : [ "c" , "d" ] } ,
70+ foo : { multiple : false , union : new Set ( [ "a" , "b" ] ) } ,
71+ bar : { multiple : true , union : new Set ( [ "c" , "d" ] ) } ,
7272 } ,
7373 } ) ;
7474} ) ;
@@ -114,11 +114,11 @@ test("getMatcher decrements the ranking by 1 if the path is an area", () => {
114114 search : {
115115 orderBy : {
116116 multiple : false ,
117- union : [ "asc" , "desc" ] ,
117+ union : new Set ( [ "asc" , "desc" ] ) ,
118118 } ,
119119 status : {
120120 multiple : true ,
121- union : [ "disabled" , "enabled" , "pending" ] ,
121+ union : new Set ( [ "disabled" , "enabled" , "pending" ] ) ,
122122 } ,
123123 } ,
124124 } ,
0 commit comments