fix: fixed tests
ref: N25B-450
This commit is contained in:
@@ -3,7 +3,6 @@ import {
|
||||
type Connection,
|
||||
type Edge,
|
||||
type Node,
|
||||
useReactFlow
|
||||
} from "@xyflow/react";
|
||||
import type {HandleRule, RuleResult} from "../../../../src/pages/VisProgPage/visualProgrammingUI/HandleRuleLogic.ts";
|
||||
import { NodeDisconnections } from "../../../../src/pages/VisProgPage/visualProgrammingUI/NodeRegistry.ts";
|
||||
@@ -402,9 +401,10 @@ describe('FlowStore Functionality', () => {
|
||||
target: 'B'
|
||||
}]
|
||||
});
|
||||
const {deleteElements} = useReactFlow();
|
||||
|
||||
|
||||
act(()=> {
|
||||
deleteNode(nodeId, deleteElements);
|
||||
deleteNode(nodeId);
|
||||
});
|
||||
|
||||
const updatedState = useFlowStore.getState();
|
||||
|
||||
Reference in New Issue
Block a user