export const createTestNode = ( id , data = { } , config = { } ) => { return { ... config , id , data : { props : { } , custom : { } , hidden : false , isCanvas : false , nodes : [ ] , linkedNodes : { } , ... data , } , related : { } , events : { selected : false , dragged : false , hovered : false , ... ( config . events || { } ) , } , rules : { canMoveIn : ( ) => true , canMoveOut : ( ) => true , canDrag : ( ) => true , canDrop : ( ) => true , ... ( config . rules || { } ) , } , } ; } ;