File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -27,12 +27,17 @@ export const steps = ({
2727 regExpMatchedStep (
2828 {
2929 regExp :
30- / ^ t h i s H T T P A P I M o c k r e s p o n s e f o r ` (?< methodHostPathQuery > [ A - Z ] + h t t p ? s : \/ \/ [ ^ ` ] + ) ` i s q u e u e d $ / ,
30+ / ^ t h i s H T T P A P I M o c k r e s p o n s e f o r ` (?< methodHostPathQuery > [ A - Z ] + h t t p ? s : \/ \/ [ ^ ` ] + ) ` i s q u e u e d ( a n d k e p t ) ? $ / ,
3131 schema : Type . Object ( {
3232 methodHostPathQuery : Type . String ( ) ,
33+ keep : Type . Optional ( Type . Literal ( ' and kept' ) ) ,
3334 } ) ,
3435 } ,
35- async ( { match : { methodHostPathQuery } , log : { progress } , step } ) => {
36+ async ( {
37+ match : { methodHostPathQuery, keep } ,
38+ log : { progress } ,
39+ step,
40+ } ) => {
3641 const [ method , hostPathQuery ] = methodHostPathQuery . split ( ' ' )
3742 if ( method === undefined ) throw new Error ( `Method is undefined!` )
3843 if ( hostPathQuery === undefined )
@@ -63,6 +68,7 @@ export const steps = ({
6368 queryParams :
6469 query !== undefined ? new URLSearchParams ( query ) : undefined ,
6570 statusCode : response . statusCode ,
71+ keep : keep !== undefined ,
6672 } )
6773 } ,
6874 ) ,
You can’t perform that action at this time.
0 commit comments