Merge branch 'next' into refactor/set-nodes

This commit is contained in:
moklick
2024-01-11 10:24:18 +01:00
2 changed files with 4 additions and 4 deletions
@@ -13,7 +13,6 @@ describe('useEdges.cy.tsx', () => {
</ReactFlow>
);
cy.get('@onChangeSpy').should('have.been.calledWith', []);
cy.get('@onChangeSpy').should('have.been.calledWith', initialEdges);
});
@@ -15,8 +15,10 @@ const initialNodes: Node[] = nodes.map((n) => ({
const expectedNodes: Node[] = initialNodes.map((n) => ({
...n,
positionAbsolute: n.position,
...nodeDimensions,
computed: {
positionAbsolute: n.position,
...nodeDimensions,
},
}));
describe('useNodes.cy.tsx', () => {
@@ -29,7 +31,6 @@ describe('useNodes.cy.tsx', () => {
</ReactFlow>
);
cy.get('@onChangeSpy').should('have.been.calledWith', []);
cy.get('@onChangeSpy').should('have.been.calledWith', expectedNodes);
});