test: Added test for onReconnectStart

ref: N25B-114
This commit is contained in:
JGerla
2025-10-25 15:27:50 +02:00
parent 42357217e5
commit 2e2bd587d0

View File

@@ -69,6 +69,17 @@ describe('FlowStore Functionality', () => {
});
});
describe('ReactFlow onReconnectStart', () => {
test('does correct setup for edge reconnection sequences', () => {
const {onReconnectStart} = useFlowStore.getState();
act(() => {
useFlowStore.setState({edgeReconnectSuccessful: true});
onReconnectStart();
});
const updatedState = useFlowStore.getState().edgeReconnectSuccessful;
expect(updatedState).toEqual(false);
});
});
describe('ReactFlow onReconnectEnd', () => {
});