Skip to content

Commit

Permalink
Merge pull request dagrejs#78 from zhanba/master
Browse files Browse the repository at this point in the history
fix 2 test errors
  • Loading branch information
cpettitt authored Jan 27, 2018
2 parents a3117f4 + 5b5ddfa commit 6d89445
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/alg/dijkstra-all-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ describe("alg.dijkstraAll", function() {

function weight(g) {
return function(e) {
return g.getEdge(e);
return g.edge(e);
};
}
2 changes: 1 addition & 1 deletion test/alg/dijkstra-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ describe("alg.dijkstra", function() {
g.setPath(["a", "c", "d"]);
g.setEdge("b", "c");

expect(dijkstra(g, "d", undefined, function(e) { return g.inEdges(e); }), {
expect(dijkstra(g, "d", undefined, function(e) { return g.inEdges(e); })).to.eql({
a: { distance: 2, predecessor: "c" },
b: { distance: 2, predecessor: "c" },
c: { distance: 1, predecessor: "d" },
Expand Down

0 comments on commit 6d89445

Please sign in to comment.