From 003983c510f724c57cf1d41222978f7481d1250e Mon Sep 17 00:00:00 2001 From: Astolfo Date: Sat, 12 Feb 2022 22:27:47 -0300 Subject: [PATCH] fix/test/ Vertex by index --- data-structures/graph/__test__/Graph.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data-structures/graph/__test__/Graph.test.js b/data-structures/graph/__test__/Graph.test.js index c062b038..5c1400ee 100755 --- a/data-structures/graph/__test__/Graph.test.js +++ b/data-structures/graph/__test__/Graph.test.js @@ -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', () => { @@ -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]);