@@ -170,7 +170,6 @@ describe('ConditionBlockHandler', () => {
170170 blockType : 'target' ,
171171 blockTitle : 'Target Block 1' ,
172172 } ,
173- selectedConditionId : 'cond1' ,
174173 selectedOption : 'cond1' ,
175174 }
176175
@@ -210,7 +209,6 @@ describe('ConditionBlockHandler', () => {
210209 blockType : 'target' ,
211210 blockTitle : 'Target Block 2' ,
212211 } ,
213- selectedConditionId : 'else1' ,
214212 selectedOption : 'else1' ,
215213 }
216214
@@ -371,7 +369,7 @@ describe('ConditionBlockHandler', () => {
371369 const result = await handler . execute ( contextWithoutSource , mockBlock , inputs )
372370
373371 expect ( result ) . toHaveProperty ( 'conditionResult' , true )
374- expect ( result ) . toHaveProperty ( 'selectedConditionId ' , 'cond1' )
372+ expect ( result ) . toHaveProperty ( 'selectedOption ' , 'cond1' )
375373 } )
376374
377375 it ( 'should throw error if target block is missing' , async ( ) => {
@@ -419,7 +417,6 @@ describe('ConditionBlockHandler', () => {
419417
420418 expect ( ( result as any ) . conditionResult ) . toBe ( false )
421419 expect ( ( result as any ) . selectedPath ) . toBeNull ( )
422- expect ( ( result as any ) . selectedConditionId ) . toBeNull ( )
423420 expect ( ( result as any ) . selectedOption ) . toBeNull ( )
424421 expect ( mockContext . decisions . condition . has ( mockBlock . id ) ) . toBe ( false )
425422 } )
@@ -438,6 +435,6 @@ describe('ConditionBlockHandler', () => {
438435 const result = await handler . execute ( mockContext , mockBlock , inputs )
439436
440437 expect ( mockContext . decisions . condition . get ( mockBlock . id ) ) . toBe ( 'else1' )
441- expect ( ( result as any ) . selectedConditionId ) . toBe ( 'else1' )
438+ expect ( ( result as any ) . selectedOption ) . toBe ( 'else1' )
442439 } )
443440} )
0 commit comments