Skip to content

Commit 81442f7

Browse files
committed
Chore: Fix tests
1 parent d5dde27 commit 81442f7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/models/graph.spec.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -726,17 +726,17 @@ describe('Graph', () => {
726726
graph.setup({ nodes, edges });
727727

728728
graph.getNodes().forEach((node) => {
729-
expect(node.style).toEqual({});
729+
expect(node.getStyle()).toEqual({});
730730
});
731731

732732
graph.getEdges().forEach((edge) => {
733-
expect(edge.style).toEqual(edgeStyle);
733+
expect(edge.getStyle()).toEqual(edgeStyle);
734734
});
735735

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

738738
graph.getNodes().forEach((node) => {
739-
expect(node.style).toEqual(nodeStyle);
739+
expect(node.getStyle()).toEqual(nodeStyle);
740740
});
741741
});
742742
});

0 commit comments

Comments
 (0)