@@ -111,10 +111,12 @@ describe('RouterExecutionContext', () => {
111111 [ `${ RouteParamtypes . REQUEST } :0` ] : {
112112 index : 0 ,
113113 data : undefined ,
114+ pipes : [ ] ,
114115 } ,
115116 [ `${ RouteParamtypes . BODY } :1` ] : {
116117 index : 1 ,
117118 data : undefined ,
119+ pipes : [ ] ,
118120 } ,
119121 } ;
120122 expect ( metadata ) . to . deep . equal ( expectedMetadata ) ;
@@ -147,17 +149,18 @@ describe('RouterExecutionContext', () => {
147149
148150 it ( 'should exchange arguments keys for appropriate values' , ( ) => {
149151 const metadata = {
150- [ RouteParamtypes . REQUEST ] : { index : 0 , data : 'test' } ,
152+ [ RouteParamtypes . REQUEST ] : { index : 0 , data : 'test' , pipes : [ ] } ,
151153 [ RouteParamtypes . BODY ] : {
152154 index : 2 ,
153155 data : 'test' ,
156+ pipes : [ ] ,
154157 } ,
155158 } ;
156159 const keys = Object . keys ( metadata ) ;
157160 const values = contextCreator . exchangeKeysForValues ( keys , metadata , { res, req, next } ) ;
158161 const expectedValues = [
159- { index : 0 , value : req , type : RouteParamtypes . REQUEST , data : 'test' } ,
160- { index : 2 , value : req . body . test , type : RouteParamtypes . BODY , data : 'test' } ,
162+ { index : 0 , value : req , type : RouteParamtypes . REQUEST , data : 'test' , pipes : [ ] } ,
163+ { index : 2 , value : req . body . test , type : RouteParamtypes . BODY , data : 'test' , pipes : [ ] } ,
161164 ] ;
162165 expect ( values ) . to . deep . equal ( expectedValues ) ;
163166 } ) ;
0 commit comments