mirror of
https://github.moeyy.xyz/https://github.com/trekhleb/javascript-algorithms.git
synced 2024-11-10 11:09:43 +08:00
Compare commits
2 Commits
80a49c241f
...
af3a9358fc
Author | SHA1 | Date | |
---|---|---|---|
|
af3a9358fc | ||
|
c42a8a326c |
@ -246,6 +246,9 @@ describe('Graph', () => {
|
||||
expect(graph.getAllEdges().length).toBe(2);
|
||||
expect(graph.getAllEdges()[0].getKey()).toBe(edgeBC.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', () => {
|
||||
|
Loading…
Reference in New Issue
Block a user