Skip to content

Commit

Permalink
Chore: Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexIchenskiy committed Mar 20, 2024
1 parent d5dde27 commit 81442f7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/models/graph.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -726,17 +726,17 @@ describe('Graph', () => {
graph.setup({ nodes, edges });

graph.getNodes().forEach((node) => {
expect(node.style).toEqual({});
expect(node.getStyle()).toEqual({});
});

graph.getEdges().forEach((edge) => {
expect(edge.style).toEqual(edgeStyle);
expect(edge.getStyle()).toEqual(edgeStyle);
});

graph.remove({ edgeIds: graph.getEdges().map((edge) => edge.id) });

graph.getNodes().forEach((node) => {
expect(node.style).toEqual(nodeStyle);
expect(node.getStyle()).toEqual(nodeStyle);
});
});
});
Expand Down

0 comments on commit 81442f7

Please sign in to comment.