This commit is contained in:
AlbertGao 2024-07-17 10:40:10 +09:00 committed by GitHub
commit 80a49c241f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -246,6 +246,9 @@ describe('Graph', () => {
expect(graph.getAllEdges().length).toBe(2); expect(graph.getAllEdges().length).toBe(2);
expect(graph.getAllEdges()[0].getKey()).toBe(edgeBC.getKey()); expect(graph.getAllEdges()[0].getKey()).toBe(edgeBC.getKey());
expect(graph.getAllEdges()[1].getKey()).toBe(edgeAC.getKey()); expect(graph.getAllEdges()[1].getKey()).toBe(edgeAC.getKey());
expect(vertexA.hasEdge(edgeAB)).toBe(false);
expect(vertexB.hasEdge(edgeAB)).toBe(false)
}); });
it('should should throw an error when trying to delete not existing edge', () => { it('should should throw an error when trying to delete not existing edge', () => {