Skip to content

Commit

Permalink
Added test for Node.getNeighbors exists
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeKarlsson authored Jan 28, 2017
1 parent 0b3b8ff commit 4cba4e5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/graph-traversal.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 65,12 @@ describe('Graph Generator', () => {
expect(C.addNeighbors()).to.exist;
});

it('Node should have a method `getNeighbors`', () => {
expect(A.getNeighbors()).to.exist;
expect(B.getNeighbors()).to.exist;
expect(C.getNeighbors()).to.exist;
});

it('Node `neighbors` should refernce other neighbors', () => {
A.addNeighbors([B, C]);
B.addNeighbors([D, E]);
Expand Down

0 comments on commit 4cba4e5

Please sign in to comment.