File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -93,11 +93,10 @@ export const steps: StepRunner<Record<string, any>>[] = [
9393 storeName : Type . String ( ) ,
9494 } ) ,
9595 } ,
96- async ( { match : { exp, storeName } , log : { progress } , context } ) => {
96+ async ( { match : { exp, storeName } , context } ) => {
9797 await currentRequest . match ( async ( { body } ) => {
9898 const e = jsonata ( exp )
9999 const result = await e . evaluate ( body )
100- progress ( result )
101100 assert . notEqual ( result , undefined )
102101 context [ storeName ] = result
103102 } )
@@ -110,14 +109,12 @@ export const steps: StepRunner<Record<string, any>>[] = [
110109 exp : Type . Optional ( Type . String ( ) ) ,
111110 } ) ,
112111 } ,
113- async ( { step, match : { exp } , log : { progress } } ) => {
112+ async ( { step, match : { exp } } ) => {
113+ const expected = JSON . parse ( codeBlockOrThrow ( step ) . code )
114114 await currentRequest . match ( async ( { body } ) => {
115- const expected = JSON . parse ( codeBlockOrThrow ( step ) . code )
116- progress ( expected )
117115 if ( exp !== undefined ) {
118116 const e = jsonata ( exp )
119117 const result = await e . evaluate ( body )
120- progress ( result )
121118 check ( result ) . is ( objectMatching ( expected ) )
122119 } else {
123120 check ( body ) . is ( objectMatching ( expected ) )
You can’t perform that action at this time.
0 commit comments