feat: added a behavior program reduction algorithm

This commit is contained in:
Gerla, J. (Justin)
2025-11-05 15:21:59 +00:00
parent 52b839ae51
commit c4845c6738
9 changed files with 1401 additions and 73 deletions

View File

@@ -24,8 +24,8 @@ describe('Drag-and-Drop sidebar', () => {
})
const updatedState = useFlowStore.getState();
expect(updatedState.nodes.length).toBe(2);
expect(updatedState.nodes[0].id).toBe(`${nodeType}-0`);
expect(updatedState.nodes[1].id).toBe(`${nodeType}-1`);
expect(updatedState.nodes[0].id).toBe(`${nodeType}-1`);
expect(updatedState.nodes[1].id).toBe(`${nodeType}-2`);
});
test('throws error on unexpected node type', () => {
expect(() => addNode('I do not Exist', {x:100, y:100})).toThrow("Node I do not Exist not found");