test: added test
added test for addNode ref: N25B-114
This commit is contained in:
@@ -69,7 +69,9 @@ function DraggableNode({className, children, nodeType, onDrop}: DraggableNodePro
|
||||
);
|
||||
}
|
||||
|
||||
function addNode(nodeType: string, position: XYPosition) {
|
||||
|
||||
// eslint-disable-next-line react-refresh/only-export-components
|
||||
export function addNode(nodeType: string, position: XYPosition) {
|
||||
const {setNodes} = useFlowStore.getState();
|
||||
const nds = useFlowStore.getState().nodes;
|
||||
const newNode = () => {
|
||||
|
||||
Reference in New Issue
Block a user