@@ -4498,12 +4498,12 @@ describe('node config an executor requires (#20316)', () => {
44984498 validateStackExpressions ( stack as never ) . filter ( ( i ) => ( i . severity ?? 'error' ) === 'error' ) ;
44994499
45004500 it . each ( [
4501- [ 'loop' , { collection : '{rows}' , body : { nodes : [ { id : 'b' , type : 'assignment' } ] , edges : [ ] } } , 'collection' ] ,
4502- [ 'map' , { collection : '{rows}' , flowName : 'child_flow' } , 'collection' ] ,
4503- [ 'get_record' , { objectName : 'account' } , 'objectName' ] ,
4504- [ 'http' , { url : 'https://example.com/hook' } , 'url' ] ,
4505- [ 'subflow' , { flowName : 'child_flow' } , 'flowName' ] ,
4506- ] as Array < [ string , Record < string , unknown > , string ] > ) ( '%s without `%s ` is refused; with it, nothing is' , ( type , whole , key ) => {
4501+ { type : 'loop' , whole : { collection : '{rows}' , body : { nodes : [ { id : 'b' , type : 'assignment' } ] , edges : [ ] } } , key : 'collection' } ,
4502+ { type : 'map' , whole : { collection : '{rows}' , flowName : 'child_flow' } , key : 'collection' } ,
4503+ { type : 'get_record' , whole : { objectName : 'account' } , key : 'objectName' } ,
4504+ { type : 'http' , whole : { url : 'https://example.com/hook' } , key : 'url' } ,
4505+ { type : 'subflow' , whole : { flowName : 'child_flow' } , key : 'flowName' } ,
4506+ ] as Array < { type : string ; whole : Record < string , unknown > ; key : string } > ) ( '$type without `$key ` is refused; with it, nothing is' , ( { type, whole, key } ) => {
45074507 expect ( errorsOf ( stackWith ( { type, config : whole } ) ) ) . toHaveLength ( 0 ) ;
45084508 const authored = { ...whole } ;
45094509 delete authored [ key ] ;
0 commit comments