Skip to content

Commit

Permalink
fix/test/ Vertex by index
Browse files Browse the repository at this point in the history
  • Loading branch information
brunolnetto committed Feb 13, 2022
1 parent 6066a09 commit 003983c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data-structures/graph/__test__/Graph.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ describe('Graph', () => {
// Add edges
graph.addEdges([AB, BC, CD, CE, EB, CF, FB]);

expect(graph.getVertexByIndex(0)).toStrictEqual('A');
expect(graph.getVertexByIndex(0)).toStrictEqual(A);
});

it('Cycles in a finite graph must be finite', () => {
Expand Down Expand Up @@ -806,7 +806,7 @@ describe('Graph', () => {
const EB = new GraphEdge(E, B);
const CF = new GraphEdge(C, F);
const FB = new GraphEdge(F, B);

// Add edges
graph_.addEdges([AB, BC, CD, CE, EB, CF, FB]);

Expand Down

0 comments on commit 003983c

Please sign in to comment.